Repository navigation
Start the incremental authorization flow by creating OIDAuthorizationRequest.
#406
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
brnnmrls
merged 32 commits into
briannamorales/vwg-flow
from
briannamorales/presentAuthorizationRequest
May 17, 2024
Merged
Changes from all commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
54df794
Create method verifyAccountDetailsInteractivelyWithOptions.
brnnmrls 5896985
Move configuration creation methods to GIDConfiguration from GIDSignIn.
brnnmrls 94a4175
Implement default options creation methods.
brnnmrls 4c2a643
Options validation.
brnnmrls 78e175d
Add config initializers.
brnnmrls 731d3a8
Merge branch 'briannamorales/vwg-flow' into briannamorales/optionsVal…
brnnmrls a5b9a61
Fix spacing.
brnnmrls d70400a
Add import to use GIDAccountDetailTypeAgeOver18.
brnnmrls f858d20
Import GIDConfiguration to test file.
brnnmrls 4a97c00
Create OIDAuthorizationRequest.
brnnmrls c4d0a16
Add tests for config initializers.
brnnmrls e04a1ea
Add in initializer with config tests.
brnnmrls 93fb453
Make used variables properties.
brnnmrls 8441f85
Merge branch 'briannamorales/optionsValidation' into briannamorales/p…
brnnmrls 066fa07
Add TODO for request/response handling tests.
brnnmrls dc6560b
Exclude MacOS for `GIDEMMSupport` use.
brnnmrls fa7845c
Silence unused 'request' variable for now until response is implemented.
brnnmrls 8bfd659
Add tests for config initializer and current user exception.
brnnmrls 9376a4b
Create fake main bundle initializer and modify tests.
brnnmrls 4cebc05
Remove Emm flow support and move GIDSignIn strings to avoid repeated …
brnnmrls 51c5a36
Unblock testing in GIDVerifyAccountDetailTest by changing GIDSignInTe…
brnnmrls 6ce9f10
Address formatting and indicate designated initializer in GIDFakeMain…
brnnmrls 4d981eb
Add stopFaking calls in appropriate tests.
brnnmrls b744a4b
Fix indentation and remove parameter from `additionalParameters`.
brnnmrls 89b92d3
Let parameter-less `init` be nullable and require `initWithConfig` to…
brnnmrls 78daa0b
Create `GIDSignInConstants` class to hold common constants across the…
brnnmrls 7112ce5
Fix method description and make `initWithConfig` nullable.
brnnmrls 241d72e
Merge branch 'briannamorales/optionsValidation' into briannamorales/p…
brnnmrls 674ec5f
Merge branch 'briannamorales/vwg-flow' into briannamorales/presentAut…
brnnmrls aac80b4
Move constants to `GIDSignInConstants` and update doc comments.
brnnmrls 298d9c4
Update preprocessor directives to exclude TARGET_OS_MACCATALYST.
brnnmrls 227f3e3
Fix formatting.
brnnmrls 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
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,41 @@ | ||
| /* | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| #import <Foundation/Foundation.h> | ||
|
|
||
| /// The URL template for the authorization endpoint. | ||
| extern NSString *const kAuthorizationURLTemplate; | ||
|
|
||
| /// The URL template for the token endpoint. | ||
| extern NSString *const kTokenURLTemplate; | ||
|
|
||
| /// Expected path in the URL scheme to be handled. | ||
| extern NSString *const kBrowserCallbackPath; | ||
|
|
||
| /// The name of the audience parameter for the auth and token exchange endpoints. | ||
| extern NSString *const kAudienceParameter; | ||
|
|
||
| /// The name of the open ID realm parameter for the auth and token exchange endpoints. | ||
| extern NSString *const kOpenIDRealmParameter; | ||
|
|
||
| /// The name of the include granted scopes parameter for the auth and token exchange endpoints. | ||
| extern NSString *const kIncludeGrantedScopesParameter; | ||
|
|
||
| /// The name of the login hint parameter for the auth and token exchange endpoints. | ||
| extern NSString *const kLoginHintParameter; | ||
|
|
||
| /// The name of the hosted domain parameter for the auth and token exchange endpoints. | ||
| extern NSString *const kHostedDomainParameter; |
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,29 @@ | ||
| /* | ||
| * Copyright 2024 Google LLC | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| #import <Foundation/Foundation.h> | ||
|
|
||
| #import "GoogleSignIn/Sources/GIDSignInConstants.h" | ||
|
|
||
| NSString *const kAuthorizationURLTemplate = @"https://%@/o/oauth2/v2/auth"; | ||
| NSString *const kTokenURLTemplate = @"https://%@/token"; | ||
| NSString *const kBrowserCallbackPath = @"/oauth2callback"; | ||
|
|
||
| NSString *const kAudienceParameter = @"audience"; | ||
| NSString *const kOpenIDRealmParameter = @"openid.realm"; | ||
| NSString *const kIncludeGrantedScopesParameter = @"include_granted_scopes"; | ||
| NSString *const kLoginHintParameter = @"login_hint"; | ||
| NSString *const kHostedDomainParameter = @"hd"; | ||
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
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
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
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
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.