class Google::ServiceAuth
- Google::ServiceAuth
- Google::Auth
- Reference
- Object
Defined in:
auth/service_auth.crConstant Summary
-
AUDIENCE =
"https://www.googleapis.com/oauth2/v4/token" -
DEFAULT_USER_AGENT =
"Google on Crystal" -
EXPIRY =
60.seconds -
GOOGLE_URI =
URI.parse("https://www.googleapis.com") -
SIGNING_ALGORITHM =
JWT::Algorithm::RS256 -
TOKEN_PATH =
"/oauth2/v4/token" -
TOKENS_CACHE =
{} of String => Token
Constructors
Instance Method Summary
- #client_email : String
-
#get_token : Token
https://developers.google.com/identity/protocols/OAuth2ServiceAccount
- #issuer : String
- #issuer=(issuer : String)
- #signing_key : String
- #signing_key=(signing_key : String)
Instance methods inherited from class Google::Auth
client_email : String
client_email,
get_token : Token
get_token,
issuer : String
issuer,
signing_key : String
signing_key,
user_agent : String
user_agent,
user_agent=(user_agent : String)
user_agent=
Constructor methods inherited from class Google::Auth
new(issuer : String, signing_key : String, scopes : String | Array(String), sub : String = "", user_agent : String = DEFAULT_USER_AGENT)
new
Constructor Detail
def self.new(issuer : String, signing_key : String, scopes : String | Array(String), sub : String = "", user_agent : String = DEFAULT_USER_AGENT)
#
Instance Method Detail
https://developers.google.com/identity/protocols/OAuth2ServiceAccount