MastodonOAuthServerMetadata class

OAuth authorization server metadata model.

Corresponds to the response from GET /.well-known/oauth-authorization-server.

Annotations

Constructors

MastodonOAuthServerMetadata({required String issuer, required String serviceDocumentation, required String authorizationEndpoint, required String tokenEndpoint, required String appRegistrationEndpoint, required String revocationEndpoint, String? userinfoEndpoint, required List<String> scopesSupported, required List<String> responseTypesSupported, required List<String> responseModesSupported, List<String>? codeChallengeMethodsSupported, required List<String> grantTypesSupported, required List<String> tokenEndpointAuthMethodsSupported})
Creates a MastodonOAuthServerMetadata with the given fields.
const
MastodonOAuthServerMetadata.fromJson(Map<String, dynamic> json)
Creates a MastodonOAuthServerMetadata from a JSON map.
factory

Properties

appRegistrationEndpoint String
URL of the application registration endpoint.
final
authorizationEndpoint String
URL of the authorization endpoint.
final
codeChallengeMethodsSupported List<String>?
List of supported code challenge methods.
final
grantTypesSupported List<String>
List of supported grant types.
final
hashCode int
The hash code for this object.
no setterinherited
issuer String
Identifier URL of the authorization server.
final
responseModesSupported List<String>
List of supported response modes.
final
responseTypesSupported List<String>
List of supported response types.
final
revocationEndpoint String
URL of the token revocation endpoint.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopesSupported List<String>
List of supported scopes.
final
serviceDocumentation String
URL of the service documentation.
final
tokenEndpoint String
URL of the token endpoint.
final
tokenEndpointAuthMethodsSupported List<String>
List of supported token endpoint authentication methods.
final
userinfoEndpoint String?
URL of the userinfo endpoint.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited