A basic SAML based authroization code grant flow authentication using AWS Cognito with Azure Active Directory IdP through AWS Amplify with EmberJS (octane).
This repo gives a gist of handling federated sign-in using Amplify's Hub events on callback redirects in ember flow without any promise callbacks.
$ git clone https://github.com/tamdilip/ember-amplify-cognito-azure-ad.git
$ cd ember-amplify-cognito-azure-ad
$ npm i
$ ember s
Hit - http:https://localhost:4200/
Takes to login page with both Microsoft AzureAD option (authenticates only users in active directory) and Cognito user pool option ( Sign up available)
On successful login should see below page :)
- Amazon Cognito user pool OAuth 2.0 grants
- Amplify federated sign-in
- Cognito User Pool with an Azure AD idp setup
Happy coding :) !!