-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Identity API updates July 2020 #13154
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
07b26a9
Identity API updates July 2020
4a6da7e
update identity versions
faa0fec
update docs
d165178
Merge remote-tracking branch 'upstream/master' into identity-api-chan…
6f9b8aa
Merge branch 'master' into identity-api-changes-july2020
g2vinay 9379033
Merge remote-tracking branch 'upstream/master' into identity-api-chan…
95e2a40
Merge branch 'identity-api-changes-july2020' of ssh://github.com/g2vi…
aa15c32
update API after consistency review
c18e062
update code
e0fa3d7
update docs
1a09bec
update code
5a8562b
fix checkstyle
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 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 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -24,15 +24,13 @@ public SharedTokenCacheCredentialBuilder username(String username) { | |
} | ||
|
||
/** | ||
* Sets whether to use an unprotected file specified by <code>cacheFileLocation()</code> instead of | ||
* Gnome keyring on Linux. This is false by default. | ||
* Allows to use an unprotected file specified by <code>cacheFileLocation()</code> instead of | ||
* Gnome keyring on Linux. This is restricted by default. | ||
* | ||
* @param allowUnencryptedCache whether to use an unprotected file for cache storage. | ||
* | ||
* @return An updated instance of this builder with the unprotected token cache setting set as specified. | ||
* @return An updated instance of this builder. | ||
*/ | ||
public SharedTokenCacheCredentialBuilder allowUnencryptedCache(boolean allowUnencryptedCache) { | ||
this.identityClientOptions.allowUnencryptedCache(allowUnencryptedCache); | ||
public SharedTokenCacheCredentialBuilder allowUnencryptedCache() { | ||
this.identityClientOptions.allowUnencryptedCache(); | ||
return this; | ||
} | ||
|
||
|
@@ -43,6 +41,6 @@ public SharedTokenCacheCredentialBuilder allowUnencryptedCache(boolean allowUnen | |
*/ | ||
public SharedTokenCacheCredential build() { | ||
return new SharedTokenCacheCredential(username, clientId, tenantId, | ||
identityClientOptions.enablePersistentCache(true)); | ||
identityClientOptions.enablePersistentCache()); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need to update the |
||
} | ||
} |
This file contains 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 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.
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.
I don't believe we had added the support options for persisting the cache to
AuthorizationCodeCredential
in .NET and Python. @chlowell Was this in the design for the application authentication feature? If not perhaps we should add it to the backlog and remove from Java until we are ready to do this across languages.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.
It was excluded because you need an authorization code to use this credential. If I have the record of a prior authentication, do I still need the authorization code? If I have an authorization code, why do I want to use cached data? Etc.
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.
I believe we've released a preview already with allowUnecnryptedCache on AuthorizationCodeCredentialBuilder.
For consistency, we can remove it.
@jianghaolu what are your thoughts ?
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.
This API is removed now.