GitXplorerGitXplorer
t

AspNet.Security.OAuth.AWSCognito

public
1 stars
1 forks
2 issues

Commits

List of commits on branch master.
Unverified
67da2de27444a8aef2ba1e5edb88dfe0f1576e5f

Simplified AWSCognitoOptions by auto generating the auth and token endpoints

committed 7 years ago
Unverified
779e5d2a000bb5ef127999c8d0af01145635877a

Added Claim Mappings for the defined Cognito Claims

committed 7 years ago
Unverified
f7b65774052513466452bf8bede376cc5ef4ae50

Cognito Signin Admin Scope automatically added to options

committed 7 years ago
Unverified
1513eac277ec8ac1b02a4e4d52e2e51d6844b838

Added Phone scope to scopes definition

committed 7 years ago
Unverified
8b56b3e54bd4073ed59b4ebf793ba5477798d2be

Added dependencies to readme

committed 7 years ago
Unverified
feca5a9ff39122c6c33a8823745902099f33103b

made AWSCognitoScopes a public class

committed 7 years ago

README

The README file for this repository.

ASP.Net Core 2.0 OAuth Provider for AWS Cognito

AspNet.Security.OAuth.AWSCognito allows you to authenticate against your AWS Cognito User Pool. This can be handy if your User Pool is associated with Social Identity Providers such as Facebook or Google.

This Provider supports the AWS Cognito OAuth 2.0 Flow Authorization code grant.

Information about using Amazon Cognito User Pools can be found at http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html

Dependencies

Getting Started

Once you have set up your Amazon Cognito User Pool and defined an application within the user pool, you will have the necessary information to configure this provider.

In your Startup class ConfigureServices method, register the Provider and configure it

    services.AddAuthentication()
        .AddAWSCognito(
            My-AuthenticationScheme-Name,
            My-Auth-DisplayName,
            options =>
            {
                options.ClientId = "YOUR_USERPOOL_APP_CLIENT_ID";
                options.ClientSecret = "YOUR_USERPOOL_APP_CLIENT_SECRET";
                
                options.CallbackPath = "/signin-myservice"; // Your UserPool App Callback Url
                options.UserPoolAppDomainPrefix = "YOUR-USERPOOL-APP-DOMAIN-PREFIX";
                options.AmazonRegionEndpoint = RegionEndpoint.USEast1; // AWS Region of your Cognito User Pool
                
                // Add Your Scopes of Interest
                options.Scope.Add(AWSCognitoScopes.OpenId);
                options.Scope.Add(AWSCognitoScopes.Profile);
                options.Scope.Add(AWSCognitoScopes.Email);
            });