-
Notifications
You must be signed in to change notification settings - Fork 85
Add support for 3LO loopback flow #132
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
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
77b4169
initial commit
ulisesL 5c06a86
Added DisableAutoOpenConsentPage option. Removed ConsentPageAllowRedi…
ulisesL af6fde4
Modify getTimeDuration to handle incorrect units.
ulisesL 5a36623
Improve comments for OverriddenURI.
ulisesL 6f719ce
Introduce maxWaitForListenAndServe constant.
ulisesL 4d833c0
Fix comment for consent page parameters.
ulisesL d9850f6
Remove Test3LOFlow fetch; 3lo; old interface --scope flag
ulisesL 436cd0c
Improve '--credentials' description.
ulisesL 5324b06
Move consent page options.
ulisesL e2035a8
Move consent page parameters.
ulisesL 7636cb6
Rename localhost.go to loopback.go and add description.
ulisesL 6b3169e
Add TODO to remove Test3LOFlow and rename tests in test3LOLoopbackFlow.
ulisesL 7748c3e
Add --scope option in 'old interface' test in Test3LOLoopbackFlow.
ulisesL d3b8729
Fix usage of --disableAutoOpenConsentPage and documentation.
ulisesL ca8ff9f
Create clientIDFile util file.
ulisesL b7e21a0
Remove empty lines in cli_test.go and browser.go
ulisesL ba2e96e
Remove OverriddenURI logic.
ulisesL 5359ff5
Fix regex expression in createKey in cache.go.
ulisesL affb2a1
Fix redirect_uris replacement in createKey in cache.go
ulisesL e1c9371
Move authorization handlers out of main. Remove extra empty lines.
ulisesL c0720d7
Rename clientIdFile.go.
ulisesL b9c9033
Fix typos.
ulisesL 9359ce2
Improve comments in auth-handlers.go.
ulisesL 2f44228
Reduce branching when handling 3LO loopback in main.
ulisesL 90adb9f
Move consentPageSettings logic inside 3LO loopback case.
ulisesL 0d26dec
Change scope of defer function in main. It should be inside the 3LO l…
ulisesL c4ea4be
Remove empty lines in loopback.go
ulisesL fd3c1ba
Print something saying could not auto open URL if OpenURL errors.
ulisesL 2b43ee5
Replace ReplaceContentAll with strings.Replace.
ulisesL 8ff4908
Fix TestServiceAccountImpersonationFlow.
ulisesL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
integration/fixtures/fake-client-secrets-3lo-loopback.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"installed": { | ||
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs", | ||
"auth_uri": "https://accounts.google.com/o/oauth2/auth", | ||
"client_email": "", | ||
"client_id": "144169.apps.googleusercontent.com", | ||
"project_id":"awesomeproject", | ||
"client_secret": "awesomesecret", | ||
"client_x509_cert_url": "", | ||
"redirect_uris": [ | ||
"http://localhost", | ||
"urn:ietf:wg:oauth:2.0:oob" | ||
], | ||
"token_uri": "http://localhost:8080/token" | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Go to the following link in your browser: | ||
|
||
https://accounts.google.com/o/oauth2/auth?client_id=144169.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub&state=state | ||
Authorization code not yet set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Go to the following link in your browser: | ||
|
||
https://accounts.google.com/o/oauth2/auth?client_id=144169.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub&state=state | ||
Authorization code not yet set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Go to the following link in your browser: | ||
|
||
https://accounts.google.com/o/oauth2/auth?client_id=144169.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&state=state | ||
Authorization code not yet set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Go to the following link in your browser: | ||
|
||
https://accounts.google.com/o/oauth2/auth?client_id=144169.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub&state=state | ||
Authorization code not yet set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Go to the following link in your browser: | ||
|
||
https://accounts.google.com/o/oauth2/auth?client_id=144169.apps.googleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost&response_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fpubsub&state=state | ||
Authorization code not yet set. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.