GitHubIdpConfig constructor
GitHubIdpConfig({
- required String clientId,
- required String clientSecret,
- GitHubAccountDetailsValidation githubAccountDetailsValidation = validateGitHubAccountDetails,
- GetExtraGitHubInfoCallback? getExtraGitHubInfoCallback,
Creates a new instance of GitHubIdpConfig.
Implementation
GitHubIdpConfig({
required this.clientId,
required this.clientSecret,
this.githubAccountDetailsValidation = validateGitHubAccountDetails,
this.getExtraGitHubInfoCallback,
}) : oauth2Config = OAuth2PkceServerConfig(
tokenEndpointUrl: Uri.https('github.com', '/login/oauth/access_token'),
clientId: clientId,
clientSecret: clientSecret,
credentialsLocation: OAuth2CredentialsLocation.body,
parseTokenResponse: parseTokenResponse,
);