class Armrest::Api::Auth::Login

Public Instance Methods

creds() click to toggle source
# File lib/armrest/api/auth/login.rb, line 7
def creds
  url = "#{tenant_id}/oauth2/token"
  resp = get(url,
    grant_type: "client_credentials",
    client_id: client_id,
    client_secret: client_secret,
    resource: resource,
  )
  load_json(resp)
end
endpoint() click to toggle source
# File lib/armrest/api/auth/login.rb, line 3
def endpoint
  "https://login.microsoftonline.com"
end