class

Google::ServiceAuth

Inherits Google::Auth / Reference / Object

Constants

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

new(issuer : String, signing_key : String, scopes : String | Array(String), sub : String = "", user_agent : String = DEFAULT_USER_AGENT)
Source

Instance methods

client_email
Source
get_token

https://developers.google.com/identity/protocols/OAuth2ServiceAccount

Source
issuer
Source
issuer=(issuer : String)
Source
signing_key
Source
signing_key=(signing_key : String)
Source