OAuthProviderParameters
Class: OAuthProviderParameters
Defined in: packages/auth/src/oauth/oauth.service.ts:91
OAuthProvider parameters
Extends
ServiceParameters
Constructors
Constructor
new OAuthProviderParameters():
OAuthProviderParameters
Returns
OAuthProviderParameters
Inherited from
ServiceParameters.constructor
Properties
allowedEmailDomains?
optionalallowedEmailDomains?:string[]
Defined in: packages/auth/src/oauth/oauth.service.ts:125
Only these email domains may use this provider (see ProviderEmailPolicy)
authorized_uris?
optionalauthorized_uris?:string[]
Defined in: packages/auth/src/oauth/oauth.service.ts:119
Allowed post-login targets for the redirect query parameter of the login route: absolute http(s) urls, a
target matches when it has the same origin and its path is the listed path or below it
Default
[]
client_id
client_id:
string
Defined in: packages/auth/src/oauth/oauth.service.ts:100
OAuth client id
client_secret?
optionalclient_secret?:string
Defined in: packages/auth/src/oauth/oauth.service.ts:104
OAuth client secret
redirect_uri?
optionalredirect_uri?:string
Defined in: packages/auth/src/oauth/oauth.service.ts:113
Callback url registered at the provider
Default
"<absolute url of the request>/callback"; set it explicitly behind a proxy
redirects?
optionalredirects?:OAuthRedirects
Defined in: packages/auth/src/oauth/oauth.service.ts:123
Browser redirects of the callback
scope?
optionalscope?:string[]
Defined in: packages/auth/src/oauth/oauth.service.ts:108
Scopes requested from the provider (the default depends on the provider)
trustEmailVerification?
optionaltrustEmailVerification?:boolean|string[]
Defined in: packages/auth/src/oauth/oauth.service.ts:127
Whether the verification of the email is believed (see ProviderEmailPolicy)
type
type:
string
Defined in: packages/core/lib/services/serviceparameters.d.ts:8
Type of the service
Inherited from
ServiceParameters.type
url?
optionalurl?:string
Defined in: packages/auth/src/oauth/oauth.service.ts:96
Route prefix of the login (<url>) and callback (<url>/callback) routes
Default
"/auth/<providerName>"
Methods
load()
load(
params?):this
Defined in: packages/auth/src/oauth/oauth.service.ts:133
Parameters
params?
any = {}
raw parameters
Returns
this
this
Overrides
ServiceParameters.load
update()
update(
params,delta):this
Defined in: packages/core/lib/services/serviceparameters.d.ts:25
Update parameters and call watchers if a parameter was changed
Parameters
params
any
the service parameters
delta
any
the delta
Returns
this
this for chaining
Inherited from
ServiceParameters.update
with()
with(
callback):this
Defined in: packages/core/lib/services/serviceparameters.d.ts:31
Watch for changes on the parameters and call watchers when a parameter is changed
Parameters
callback
(params) => void
the callback function
Returns
this
this for chaining
Inherited from
ServiceParameters.with