Openid connect 如何为mod_auth_openidc设置会话到期时间

Openid connect 如何为mod_auth_openidc设置会话到期时间,openid-connect,mod-auth-openidc,Openid Connect,Mod Auth Openidc,我们正在我们的一个应用程序上使用OpenID Connect,并使用Apache的mod_auth_openidc实现。有没有办法设置会话的到期时间?我们当前的配置如下所示: OIDCProviderMetadataURL https://accounts.google.com/.well-known/openid-configuration OIDCClientID XXXXXXXXXXXXXXXXX OIDCClientSecret ZZZZZZZZZZZZZZZ

我们正在我们的一个应用程序上使用OpenID Connect,并使用Apache的mod_auth_openidc实现。有没有办法设置会话的到期时间?我们当前的配置如下所示:

    OIDCProviderMetadataURL https://accounts.google.com/.well-known/openid-configuration
    OIDCClientID XXXXXXXXXXXXXXXXX
    OIDCClientSecret ZZZZZZZZZZZZZZZ
    OIDCRedirectURI https://jZZZZZZZZ.com
    OIDCCryptoPassphrase <password>
    OIDCScope "openid email"
    <Location />
            AuthType openid-connect
            require valid-user
            Require claim hd:xxxxxx
   </Location>
OIDCProviderMetadataURLhttps://accounts.google.com/.well-known/openid-configuration
OIDCClientID XXXXXXXXXXXXXX
OIDCclientCret ZZZZZZZZZZZZZZZZZZZZ
白蚁https://jZZZZZZZZ.com
密码短语
OIDCcope“openid电子邮件”
AuthType openid连接
需要有效用户
要求索赔hd:xxxxxx

您可以设置
OIDCSessionMaxDuration
,如模板
.conf
文件中所述:

#应用程序会话的最长持续时间
#未定义时,默认值为8小时(3600*8秒)。
#当设置为0时,会话持续时间将设置为ID令牌的到期时间。
#注意:这可以在.conf文件中使用以下键在每个操作的基础上重写:
#“会话\u最大\u持续时间”
#OIDCSessionMaxDuration
# Maximum duration of the application session
# When not defined the default is 8 hours (3600 * 8 seconds).
# When set to 0, the session duration will be set equal to the expiry time of the ID token.
# NB: this can be overridden on a per-OP basis in the .conf file using the key:
# "session_max_duration"
#OIDCSessionMaxDuration <seconds>