RFC 8414 OAuth 2.0 Authorization Server Metadata. See https://datatracker.ietf.org/doc/html/rfc8414#section-2
| 139 | |
| 140 | |
| 141 | class OAuthMetadata(BaseModel): |
| 142 | """RFC 8414 OAuth 2.0 Authorization Server Metadata. |
| 143 | See https://datatracker.ietf.org/doc/html/rfc8414#section-2 |
| 144 | """ |
| 145 | |
| 146 | model_config = ConfigDict(url_preserve_empty_path=True) |
| 147 | |
| 148 | issuer: AnyHttpUrl |
| 149 | authorization_endpoint: AnyHttpUrl |
| 150 | token_endpoint: AnyHttpUrl |
| 151 | registration_endpoint: AnyHttpUrl | None = None |
| 152 | scopes_supported: list[str] | None = None |
| 153 | response_types_supported: list[str] = ["code"] |
| 154 | response_modes_supported: list[str] | None = None |
| 155 | grant_types_supported: list[str] | None = None |
| 156 | token_endpoint_auth_methods_supported: list[str] | None = None |
| 157 | token_endpoint_auth_signing_alg_values_supported: list[str] | None = None |
| 158 | service_documentation: AnyHttpUrl | None = None |
| 159 | ui_locales_supported: list[str] | None = None |
| 160 | op_policy_uri: AnyHttpUrl | None = None |
| 161 | op_tos_uri: AnyHttpUrl | None = None |
| 162 | revocation_endpoint: AnyHttpUrl | None = None |
| 163 | revocation_endpoint_auth_methods_supported: list[str] | None = None |
| 164 | revocation_endpoint_auth_signing_alg_values_supported: list[str] | None = None |
| 165 | introspection_endpoint: AnyHttpUrl | None = None |
| 166 | introspection_endpoint_auth_methods_supported: list[str] | None = None |
| 167 | introspection_endpoint_auth_signing_alg_values_supported: list[str] | None = None |
| 168 | code_challenge_methods_supported: list[str] | None = None |
| 169 | client_id_metadata_document_supported: bool | None = None |
| 170 | authorization_response_iss_parameter_supported: bool | None = None |
| 171 | |
| 172 | |
| 173 | class ProtectedResourceMetadata(BaseModel): |
no outgoing calls