Skip to main content

nanobus.transport.http.oauth2/v1

Description​

SecuritySource code

Options​

loginPath​

loginPath *​string

callbackPath​

callbackPath *​string

clientId​

clientId *​string

clientSecret​

clientSecret *​string

endpoint​

endpoint *​Endpoint

callbackUrl​

callbackUrl *​string

redirectUrl​

redirectUrl *​string

cookieDomain​

cookieDomain​string

scopes​

scopes​string[]

handler​

handler​Handler

type Endpoint​

authUrl​

authUrl *​string

tokenUrl​

tokenUrl *​string

userInfoUrl​

userInfoUrl *​string

authStyle​

authStyle *​AuthStyle

AuthStyle optionally specifies how the endpoint wants the client ID & client secret sent.

enum AuthStyle​

auto-detect​

auto-detect​

AuthStyleAutoDetect means to auto-detect which authentication style the provider wants by trying both ways and caching the successful way for the future.

inparams​

inparams​

AuthStyleInParams sends the "client_id" and "client_secret" in the POST body as application/x-www-form-urlencoded parameters.

inheader​

inheader​

AuthStyleInHeader sends the client_id and client_password using HTTP Basic Authorization. This is an optional style described in the OAuth2 RFC 6749 section 2.3.1.