OAuth2Configuration constructor
const
OAuth2Configuration({
- @JsonKey(name: 'client_id') required String clientId,
- @JsonKey(name: 'redirect_uri') required String redirectUri,
- required String scope,
- @JsonKey(name: 'state', includeIfNull: false) String? state,
- @JsonKey(name: 'code_challenge', includeIfNull: false) String? codeChallenge,
- @JsonKey(name: 'code_challenge_method', includeIfNull: false) String? codeChallengeMethod,
- @JsonKey(name: 'response_type', includeIfNull: false) String? responseType,
- String? customUriScheme,
Implementation
const factory OAuth2Configuration({
@JsonKey(name: 'client_id') required String clientId,
@JsonKey(name: 'redirect_uri') required String redirectUri,
required String scope,
@JsonKey(name: 'state', includeIfNull: false) String? state,
@JsonKey(name: 'code_challenge', includeIfNull: false)
String? codeChallenge,
@JsonKey(name: 'code_challenge_method', includeIfNull: false)
String? codeChallengeMethod,
@JsonKey(name: 'response_type', includeIfNull: false) String? responseType,
/// Needed for mobile platforms
String? customUriScheme,
}) = _OAuth2Configuration;