OAuth2PkceServerConfig constructor
const
OAuth2PkceServerConfig({
- required Uri tokenEndpointUrl,
- required String clientId,
- required String clientSecret,
- required ParseTokenResponse parseTokenResponse,
- String clientIdKey = 'client_id',
- String clientSecretKey = 'client_secret',
- OAuth2CredentialsLocation credentialsLocation = OAuth2CredentialsLocation.header,
- Map<
String, String> tokenRequestHeaders = const {'Accept' : 'application/json', 'Content-Type' : 'application/x-www-form-urlencoded'}, - Map<
String, dynamic> tokenRequestParams = const {},
Create a new server config for OAuth2 PKCE.
Implementation
const OAuth2PkceServerConfig({
required this.tokenEndpointUrl,
required this.clientId,
required this.clientSecret,
required this.parseTokenResponse,
this.clientIdKey = 'client_id',
this.clientSecretKey = 'client_secret',
this.credentialsLocation = OAuth2CredentialsLocation.header,
this.tokenRequestHeaders = const {
'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
},
this.tokenRequestParams = const {},
});