Interface AuthTokenParameters

获取token的参数

interface AuthTokenParameters {
    auth_style: AuthStye;
    client_id: string;
    client_secret: string;
    code: string;
    opts?: Dict;
    redirect_url: string;
    scopes?: string[];
    state?: string;
    token_url: string;
}

Properties

auth_style: AuthStye

how to place the client id and client secret parameters when initial a request to obtain a token, in header or in url params.

client_id: string

client id

client_secret: string

client secret 此为敏感信息,请不要在源代码中直接写明文。

code: string

the code returned by the first step request

opts?: Dict

options

redirect_url: string

redirect url

scopes?: string[]

authorization scopes

state?: string

state

token_url: string

apply for the address of the token from the oauth server