Interface PlaceAuthOptions

interface PlaceAuthOptions {
    auth_type?: "auth_code" | "implicit" | "password";
    auth_uri: string;
    client_secret?: string;
    handle_login?: boolean;
    host?: string;
    ignore_api_key?: boolean;
    mock?: boolean;
    password?: string;
    redirect_uri: string;
    scope: string;
    secure?: boolean;
    storage?: "local" | "session";
    token_header?: boolean;
    token_uri: string;
    use_iframe?: boolean;
    username?: string;
    version?: "ACA Engine" | "PlaceOS";
}

Properties

auth_type?: "auth_code" | "implicit" | "password"
auth_uri: string

URI for authorizing the user

client_secret?: string

Application secret

handle_login?: boolean

Whether service should handling user login. Defaults to true

host?: string

Host name and port of the engine server

ignore_api_key?: boolean

Whether X-API-KEY values should be ignored

mock?: boolean

Whether system is in mock mode

password?: string

Password for the user being authorised

redirect_uri: string

URI for handling authentication redirects. e.g. /assets/oauth-resp.html

scope: string

Scope of the user permissions needed to access the application

secure?: boolean

Whether application uses TLS/SSL

storage?: "local" | "session"

Which keystore to use localStorage or sessionStorage. Defaults to `'local''

token_header?: boolean

Whether access tokens should be injected into request headers

token_uri: string

URI for generating new tokens

use_iframe?: boolean

Whether to perform authentication in an iframe

username?: string

Username of the user to be authorised

version?: "ACA Engine" | "PlaceOS"

Version of the API endpoints to use