<aside> 💻 Building Serverless .NET APIs using AWS Lambda, Amazon API Gateway, and Amazon Cognito

</aside>

Why do we need Custom Scopes in the API

What is a Resource Server?

The resource server is the OAuth 2.0 term for your API server.

Large scale deployments may have more than one resource server. Google’s services, for example, have dozens of resource servers, such as the Google Cloud platform, Google Maps, Google Drive, YouTube, Google+, and many others. Each of these resource servers are distinctly separate, but they all share the same authorization server.

Understanding Custom Scopes

Untitled

What we will be doing?

  1. Create a resource server for a product i.e. Photos with certain permissions (custom scopes)
  2. Create an App Client, having permissions on that resource server.
  3. Creating .NET API, and securing it with custom scopes.

Untitled

Steps

  1. Create a Resource Server in the Cognito user pool
  2. Update Custom scopes in App Client
  3. Create .NET API, refer to aspnet-core-apis/CustomScopesAuthorizationExample
  4. Create Lambda function in AWS Console
  5. Deploy .NET API on Lambda