DiscoveryDocument constructor

DiscoveryDocument({
  1. required String issuer,
  2. required String authorizationEndpoint,
  3. required String tokenEndpoint,
  4. String? registrationEndpoint,
  5. String? introspectionEndpoint,
  6. String? revocationEndpoint,
  7. String? userinfoEndpoint,
  8. required String jwksUri,
  9. List<String> responseTypesSupported = const [],
  10. List<String> grantTypesSupported = const [],
  11. List<String> tokenEndpointAuthMethodsSupported = const [],
  12. List<String> codeChallengeMethodsSupported = const [],
  13. List<String> scopesSupported = const [],
  14. List<String> subjectTypesSupported = const [],
  15. List<String> idTokenSigningAlgValuesSupported = const [],
  16. List<String> promptValuesSupported = const [],
  17. List<String> claimsSupported = const [],
  18. String? serviceDocumentation,
})

Returns a new DiscoveryDocument instance.

Implementation

DiscoveryDocument({
  required this.issuer,
  required this.authorizationEndpoint,
  required this.tokenEndpoint,
  this.registrationEndpoint,
  this.introspectionEndpoint,
  this.revocationEndpoint,
  this.userinfoEndpoint,
  required this.jwksUri,
  this.responseTypesSupported = const [],
  this.grantTypesSupported = const [],
  this.tokenEndpointAuthMethodsSupported = const [],
  this.codeChallengeMethodsSupported = const [],
  this.scopesSupported = const [],
  this.subjectTypesSupported = const [],
  this.idTokenSigningAlgValuesSupported = const [],
  this.promptValuesSupported = const [],
  this.claimsSupported = const [],
  this.serviceDocumentation,
});