(self, authorization_code: AuthorizationCodeMixin)
| 26 | |
| 27 | class OpenIDToken(LegacyMixin): |
| 28 | def get_authorization_code_claims(self, authorization_code: AuthorizationCodeMixin): |
| 29 | claims = {} |
| 30 | if nonce := authorization_code.get_nonce(): |
| 31 | claims["nonce"] = nonce |
| 32 | |
| 33 | if auth_time := authorization_code.get_auth_time(): |
| 34 | claims["auth_time"] = auth_time |
| 35 | |
| 36 | if acr := authorization_code.get_acr(): |
| 37 | claims["acr"] = acr |
| 38 | |
| 39 | if amr := authorization_code.get_amr(): |
| 40 | claims["amr"] = amr |
| 41 | return claims |
| 42 | |
| 43 | def generate_user_info(self, user, scope): |
| 44 | """Provide user information for the given scope. Developers |
no test coverage detected