class Google::Auth
- Google::Auth
- Reference
- Object
Defined in:
auth/auth.crConstant Summary
-
AUDIENCE =
"https://www.googleapis.com/oauth2/v4/token" -
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
-
#get_token : Token
https://developers.google.com/identity/protocols/OAuth2ServiceAccount
- #user_agent : String
- #user_agent=(user_agent : String)
Constructor Detail
def self.new(issuer : String, signing_key : String, scopes : String | Array(String), sub : String = "", user_agent : String = "Google on Crystal")
#
Instance Method Detail
https://developers.google.com/identity/protocols/OAuth2ServiceAccount