black-bits / laravel-cognito-auth

MIT License
89 stars 51 forks source link

Update Auth Flow name to match AWS Updates #30

Closed bluehaoran closed 4 years ago

bluehaoran commented 4 years ago

Hi guys, thanks for writing this library!

I found that the documentation needs updating.

Per the official AWS docs, they've renamed the name of the Auth Flow for server-based authentication: https://docs.aws.amazon.com/cognito/latest/developerguide/amazon-cognito-user-pools-authentication-flow.html#amazon-cognito-user-pools-server-side-authentication-flow

Pass ADMIN_USER_PASSWORD_AUTH (formerly known as ADMIN_NO_SRP_AUTH) for the ExplicitAuthFlow parameter in your server-side app's call to CreateUserPoolClient or UpdateUserPoolClient. Choose Enable sign-in API for server-based authentication (ADMIN_USER_PASSWORD_AUTH) in the App clients tab in Create a user pool. For more information, see Configuring a User Pool App Client.

This confused me for a long time, trying to get this implemented--I figured this will help the next person who comes along.

oheck commented 4 years ago

Thanks @bluehaoran!