Skip to content

Add support for 3LO loopback flow#132

Merged
andyrzhao merged 30 commits into
masterfrom
issue37
Jun 28, 2022
Merged

Add support for 3LO loopback flow#132
andyrzhao merged 30 commits into
masterfrom
issue37

Conversation

@ulisesL

@ulisesL ulisesL commented Jun 22, 2022

Copy link
Copy Markdown
Contributor

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.

@ulisesL ulisesL requested review from andyrzhao and shinfan June 22, 2022 04:41

@andyrzhao andyrzhao left a comment

Copy link
Copy Markdown
Collaborator

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)

Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread integration/cli_test.go Outdated
Comment thread integration/cli_test.go
Comment thread main.go Outdated
Comment thread util/localhost.go
Comment thread util/cache.go Outdated
Comment thread main.go Outdated
Comment thread main.go Outdated

@andyrzhao andyrzhao left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread integration/cli_test.go Outdated
Comment thread util/auth-handlers.go Outdated
Comment thread util/auth-handlers.go Outdated
Comment thread util/auth-handlers.go Outdated
Comment thread util/clientId-id-file.go Outdated
Comment thread util/clientId-id-file.go Outdated
Comment thread util/clientId-id-file.go
Comment thread main.go Outdated
Comment thread main.go Outdated
Comment thread main.go Outdated

@andyrzhao andyrzhao left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment thread integration/golden/fetch-impersonation.golden
@andyrzhao andyrzhao merged commit e4d8719 into master Jun 28, 2022
@andyrzhao andyrzhao deleted the issue37 branch June 28, 2022 22:41
@andyrzhao andyrzhao changed the title Issue37 Add support for 3LO loopback flow Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants