2

We are using OpenID Connect on one of our applications, and implementing with Apache's mod_auth_openidc. Is there a way to set the expiry time of the session? Our current configuration looks like this:

    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>
Hans Z.
  • 50,496
  • 12
  • 102
  • 115
Aaron
  • 605
  • 1
  • 9
  • 19

1 Answers1

3

You can set OIDCSessionMaxDuration as documented in the template .conf file https://github.com/zmartzone/mod_auth_openidc/blob/master/auth_openidc.conf#L529:

# 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>
zb226
  • 9,586
  • 6
  • 49
  • 79
Hans Z.
  • 50,496
  • 12
  • 102
  • 115