Add cognito provider#491
Conversation
|
I removed the url.JoinPath which broke the CI - it should pass tests on pre 1.19 version of go now. |
|
Ok - reverted from io.ReadAll to ioutil.ReadAll (fingers crossed this should build on 1.15). |
|
You might want to rerun the CI. It failed with what looks very odd. Maybe some random env issue. All the tests in the providers actually passed. I tried a pull request on my fork to kick off the CI and it all worked that for all the builds on that run: pilotso11#1 |
|
Thanks so much @pilotso11 <3 and for working through the issues with CI :) |
Added support for AWS Cognito.
New takes 3 parameters all from the Cognito console:
You need to ensure that the source login URL is whitelisted as a login page in the client configuration in the cognito console.
GOTH does not provide a full token logout, to do that you need to do it in your code, my recommendation is
a) Destroy your session (or however else you handle the logout internally)
b) redirect to https://customdomain.auth.us-east-1.amazoncognito.com/logout?client_id=clinet_id&logout_uri=http://localhost:8080/ (or whatever your login/start page is).
c) Note that this page needs to be whitelabeled as a logout page in the cognito console as well.
This has been tested using goth_fiber.