struct

PlaceOS::Client::API::Models::OAuthAuthentication

Inherits PlaceOS::Client::API::Models::Timestamps < PlaceOS::Client::API::Models::Response < PlaceOS::Client::API::Models::Response::Init < JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source

Instance methods

auth_scheme

If not set it defaults to "request_body", others include "basic_auth"

Source
authority_id
Source
authorize_url

The SSO providers URL for authorization, defaults to: oauth/authorize Google is /o/oauth2/auth

Source
client_id

The client ID and secret configured for this application

Source
client_secret
Source
info_mappings

Maps an expected key to a provided key i.e. {used_in_engine => used_by_remote}

Source
name
Source
raw_info_url

URL to call with a valid token to obtain the users profile data (name, email etc)

Source
scope

Space seperated scope strings i.e. https://www.googleapis.com/auth/devstorage.readonly https://www.googleapis.com/auth/prediction

Source
site

The HTTP URL of the SSO provider

Source
token_method

If not set it defaults to "post"

Source
token_url

defaults to: oauth/token however google is: /o/oauth2/token

Source