-
Notifications
You must be signed in to change notification settings - Fork 258
feat: Introduce per-credential specific load methods #1827
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
Conversation
|
| String fileType = extractFromJson(fileContents, "type"); | ||
| if (fileType.equals(GoogleCredentialsInfo.EXTERNAL_ACCOUNT_CREDENTIALS.getFileType())) { | ||
| try { | ||
| return fromJson(fileContents, transportFactory); |
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.
@zhumin8 Talked with Sai and ExternalAccountCredential.fromStream() branching off to creating the subtypes is fine to keep.
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.
SG
| String fileType = extractFromJson(fileContents, "type"); | ||
| if (fileType.equals(GoogleCredentialsInfo.EXTERNAL_ACCOUNT_CREDENTIALS.getFileType())) { | ||
| try { | ||
| return fromJson(fileContents, transportFactory); |
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.
SG


Introduces the alternatives for each Credential subclass for
GoogleCredentials.fromStream()