【问题标题】:How to set session expiry time for mod_auth_openidc如何为 mod_auth_openidc 设置会话到期时间
【发布时间】:2015-08-12 21:18:23
【问题描述】:

我们在我们的一个应用程序上使用 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>

【问题讨论】:

    标签: openid-connect mod-auth-openidc


    【解决方案1】:

    您可以按照模板.conf 文件https://github.com/zmartzone/mod_auth_openidc/blob/master/auth_openidc.conf#L529 中的说明设置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>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-27
      • 2017-10-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多