You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NOTE: Due to the possibility of token substitution attacks (see Section 16.11), the UserInfo Response is not guaranteed to be about the End-User identified by the sub (subject) element of the ID Token. The sub Claim in the UserInfo Response MUST be verified to exactly match the sub Claim in the ID Token; if they do not match, the UserInfo Response values MUST NOT be used.
The text was updated successfully, but these errors were encountered:
Right now, I'm monkey patching this in my Rails app like so:
defuser_info@user_info ||= begin_user_info=access_token.userinfo!ifid_token.sub.eql?(_user_info.sub)_user_infoelseRails.logger.tagged("OpenID Connect"){Rails.logger.warn("UserInfo subject does not match ID Token subject. Discarding UserInfo response.")}
::OpenIDConnect::ResponseObject::UserInfo.new(sub: '😶')endendend
According to the OpenID Connect UserInfo Response spec:
The text was updated successfully, but these errors were encountered: