Authorization code flow with custom UI and Cognito
I was looking the documentation trying to figure out how to use Authorization code flow with custom UI and Cognito, but looks like this still not possible, am I right?
I have tried somethings as wrap all the call in my api, but doesn't seem this would solve my problem. The main objective is because the HostedUI, doesn't fulfill the requirements that I have to use the Cognito server. Does anyone know how to do this?
It is not currently possible to implement oauth2 authorization code flow without using hosted UI for authentication, this is because there is no public API to retrieve the authorization code itself from Cognito and it has to be passed back to hosted UI after successful authentication.
If you want to use custom UI, you can either just use the SDK to authenticate users using InitiateAuth API or Amplify SignIn (this is not oauth2), or if you must use oauth2 then you need to build your oauth2 endpoints on top of Cognito APIs (similar to Amplify identity broker).
Custom domain for "cognito-idp.us-east-1.amazonaws.com"asked 5 months ago
Java, JS, Android/Ios example about PKCE code grant flow extensionAccepted Answerasked 3 months ago
Cognito Hosted UI to Custom UIAccepted Answerasked 2 years ago
Custom User Authentication through SOAP Call from Cognitoasked a month ago
bad request in authorization code flowasked 2 years ago
Authorization code flow with custom UI and Cognitoasked 23 days ago
Authorization code flow with custom UI and CognitoAccepted Answerasked a year ago
How best to build custom Cognito login pages for use with a server-side app?Accepted Answerasked 3 years ago
Getting an error logging in with IdP in authorization code grant flowasked 3 years ago
Cognito - Azure AD - Amplify - flow of the SSO auth from application perspectiveAccepted Answerasked 2 years ago