-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for 3LO loopback flow #132
Conversation
…rect and ConsentPageCancelRedirect options. Updated README and tests cases accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR Ulises! This is a big change and I've left some comments regarding code organization - in general, lets move the new functions out of of main.go (into one or more util files as needed) to keep main.go as small as possible. (We can also think about adding co-located unit tests to some of the util functions in the future. Another reason to move it outside of main.go)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for addressing the previous comments! I've left some additional minor comments, should be good to merge the PR after that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Implement logic to enable 3LO loopback.
util/loopback.go: contains the localhost-logic, which is in charge of handling the auth code and state.
util/browser.go: contains the logic to open the consent page in the OS default browser.
util/auth-handlers.go: makes use of loopback and browser to create the 3LO loopback algorithm.