Skip to content

Commit

Permalink
rfc7592: get_server_metadata implementation example
Browse files Browse the repository at this point in the history
  • Loading branch information
azmeuk committed Nov 2, 2022
1 parent 3fa7312 commit 831f4d4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/specs/rfc7592.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,32 @@ Before register the endpoint, developers MUST implement the missing methods::
'registration_access_token': access_token,
}

def get_server_metadata(self):
return {
'issuer': ...,
'authorization_endpoint': ...,
'token_endpoint': ...,
'jwks_uri': ...,
'registration_endpoint': ...,
'scopes_supported': ...,
'response_types_supported': ...,
'response_modes_supported': ...,
'grant_types_supported': ...,
'token_endpoint_auth_methods_supported': ...,
'token_endpoint_auth_signing_alg_values_supported': ...,
'service_documentation': ...,
'ui_locales_supported': ...,
'op_policy_uri': ...,
'op_tos_uri': ...,
'revocation_endpoint': ...,
'revocation_endpoint_auth_methods_supported': ...,
'revocation_endpoint_auth_signing_alg_values_supported': ...,
'introspection_endpoint': ...,
'introspection_endpoint_auth_methods_supported': ...,
'introspection_endpoint_auth_signing_alg_values_supported': ...,
'code_challenge_methods_supported': ...,
}

API Reference
-------------

Expand Down

0 comments on commit 831f4d4

Please sign in to comment.