Google OpenID Connect: Receiving a 500 error when supplying the “max_age” parameter to an authentication request

前端 未结 2 631
没有蜡笔的小新
没有蜡笔的小新 2021-01-17 01:20

As required by Google, we are attempting to finish our migration from Google\'s previous OpenID Authentication flow to the new OpenID Connect implementation. Everything has

相关标签:
2条回答
  • 2021-01-17 01:58

    As of this week, Google accepts the max_age parameter, and will return an auth_time claim in the ID Token when max_age is passed.

    However, regardless of the value of max_time parameter, users won't be prompted to reauthenticate based on their session time, as that is not a pattern Google supports. Rather, users are asked to reauthenticate only when it is deemed necessary (e.g. the user is accessing their account from a new location).

    If you need to reauthenticate users on your own site, you are encouraged to do so via another means.

    0 讨论(0)
  • 2021-01-17 02:04

    Google does not honor the max_age parameter and may be considered to be outside of the spec on that one. Yet they have sound reasoning for it (see: http://lists.openid.net/pipermail/openid-specs-ab/Week-of-Mon-20150323/005445.html) that boils down to the fact that they don't want the RP to take full control over re-authentication with a "one size fits all" feature and some additional security considerations.

    I'm hoping someone from Google will reply here as well with their plans going forward but for now there's nothing that you can do about it.

    0 讨论(0)
提交回复
热议问题