Saturn

Namespace: global

Parent: global

Type Extensions
NameCE Custom OperationDescriptionImplementation Link
x.UseGoogleAuth(state, clientId, clientSecret, callbackPath, jsonToClaimMap)use_google_oauthEnables default Google OAuth authentication. jsonToClaimMap should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim. For example: ["id", ClaimTypes.NameIdentifier; "displayName", ClaimTypes.Name] where id and displayName are names of fields in the Google JSON response (link).link
x.UseGoogleAuthWithConfig(state, config)use_google_oauth_with_configEnables Google OAuth authentication with custom configuration.link
x.UseGithubAuth(state, clientId, clientSecret, callbackPath, jsonToClaimMap)use_github_oauthEnables default GitHub OAuth authentication. jsonToClaimMap should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim. For example: ["login", "githubUsername"; "name", "fullName"] where login and name are names of fields in GitHub JSON response (link).link
x.UseGithubAuthWithConfig(state, config)use_github_oauth_with_configEnables GitHub OAuth authentication with custom configuration.link
x.UseAzureADAuth(state, tenantId, clientId, clientSecret, callbackPath, scopes, jsonToClaimMap)use_azuread_oauthEnables default Azure AD OAuth authentication. scopes must be at least on of the scopes defined in link, for instance "User.Read". jsonToClaimMap should contain sequance of tuples where first element is a name of the of the key in JSON object and second element is a name of the claim. For example: ["name", "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name" ] where name is the names of a field in Azure AD's JSON response (see link or inspect tokens with https://jwt.ms).link
x.UseAzureADAuthWithConfig(state, config)use_azuread_oauth_with_configEnables AzureAD OAuth authentication with custom configuration.link
x.UseOpenIdAuthWithConfig(state, config)use_open_id_auth_with_configEnables OpenId authentication with custom configuration.link