Closed morucci closed 1 year ago
This still needs some polishing but it seems to work and the flow is like as I expected. To test it you need to create an oauth 2 app on Google and set the env vars OIDC_ID and OIDC_PASSWORD then start Butler with: ./bin/run-ghcid ButlerDemos.demoSocialAuth
This is just the rebase
That should be good now, though I haven't tested it yet :)
I've added some more improvements in https://github.com/ButlerOS/haskell-butler/tree/butler-servant , to refactor the Workspace and Auth api wrappers.
Ok thanks, I've tested to login via the IDP with two different browsers and it seems to re-use the same session by just "Setting session provider". Also I see that guest username _
I've added some more improvements in https://github.com/ButlerOS/haskell-butler/tree/butler-servant , to refactor the Workspace and Auth api wrappers.
I fine with it. Do you plan to add that new commit into that PR ?
Great, thanks for the contribution. I've proposed the servant refactor in #40 .
Only support Google Auth. The demo App propose a login button that redirect to Google in order to authenticate. Once authenticated the user is redirected to the demo App and the username is displayed.