You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Authenticates requests using Service Account credentials via an OAuth access token
51
-
- Created from JSON key file downloaded from Google Cloud Console
53
+
- Created from JSON key file downloaded from Google Cloud Console. The JSON form of this credential type has a `"type"` field with the value `"service_account"`.
52
54
- Supports both OAuth access tokens and self-signed JWT authentication
53
55
- Can specify scopes for access token requests
54
56
@@ -64,14 +66,15 @@ that exposes common initialization functionality, such as creating credentials f
64
66
- Allows a GCP principal identified by a set of source credentials to impersonate a service account
65
67
- Useful for delegation of authority and managing permissions across service accounts
66
68
- Source credentials must have the Service Account Token Creator role on the target
69
+
- This credential type does not have a supported JSON form
- For user refresh token authentication (from 3-legged OAuth flow)
72
75
- Authenticates on behalf of a user who has authorized the application
73
76
- Handles token refresh when original access token expires
74
-
- Typically obtained through web or installed application flow
77
+
- Typically obtained through web or installed application flow. The JSON form of this credential type has a `"type"` field with the value `"authorized_user"`.
75
78
76
79
`Google::Auth::UserAuthorizer` (`lib/googleauth/user_authorizer.rb`) and `Google::Auth::WebUserAuthorizer` (`lib/googleauth/web_user_authorizer.rb`)
77
80
are used to facilitate user authentication. The `UserAuthorizer` handles interactive 3-Legged-OAuth2 (3LO) user consent authorization for command-line applications.
@@ -83,6 +86,7 @@ that exposes common initialization functionality, such as creating credentials f
83
86
types based on credential source (similar to `Google::Auth::get_application_default`).
84
87
It is included in all External Account credentials types, and it itself includes `Google::Auth::BaseClient` module so all External
85
88
Account credentials types include `Google::Auth::BaseClient`.
89
+
The JSON form of this credential type has a `"type"` field with the value `"external_account"`.
0 commit comments