GoogleAuthentication
@webda/google-auth • Readme | API
Class: GoogleAuthentication<T>
Manage Google Authentication
Webda Modda
Extends
OAuthService<T,GoogleAuthEvents>
Type parameters
• T extends GoogleParameters = GoogleParameters
Implements
RequestFilter<WebContext>
Constructors
new GoogleAuthentication(webda, name, params)
new GoogleAuthentication<
T>(webda,name,params?):GoogleAuthentication<T>
Ensure default parameter url
Parameters
• webda: Core<CoreEvents>
• name: string
• params?: any
Returns
Inherited from
OAuthService<T, GoogleAuthEvents>.constructor
Source
core/lib/services/oauth.d.ts:121
Properties
_authenticationService
_authenticationService:
Authentication<AuthenticationParameters,AuthenticationEvents>
Inherited from
OAuthService._authenticationService
Source
core/lib/services/oauth.d.ts:110
_client
protected_client:OAuth2Client
Source
google-auth/src/google-auth.ts:77
_createException
_createException:
string
Inherited from
OAuthService._createException
Source
core/lib/services/service.d.ts:148
_initException
_initException:
any
Inherited from
OAuthService._initException
Source
core/lib/services/service.d.ts:150
_initTime
_initTime:
number
Inherited from
OAuthService._initTime
Source
core/lib/services/service.d.ts:149
_name
protected_name:string
Service name
Inherited from
OAuthService._name
Source
core/lib/services/service.d.ts:141
_webda
protected_webda:Core<CoreEvents>
Webda Core object
Inherited from
OAuthService._webda
Source
core/lib/services/service.d.ts:137
authorized_uris
authorized_uris:
RegExpStringValidator
Inherited from
OAuthService.authorized_uris
Source
core/lib/services/oauth.d.ts:117
logger
protectedlogger:Logger
Logger with class context
Inherited from
OAuthService.logger
Source
core/lib/services/service.d.ts:154
metrics
metrics:
Object
Type declaration
login
login:
Counter<string>
Inherited from
OAuthService.metrics
Source
core/lib/services/oauth.d.ts:114
parameters
protectedparameters:T
Hold the parameters for your service
It will be bring from the webda.config.json
Inherited from
OAuthService.parameters
Source
core/lib/services/service.d.ts:147
captureRejectionSymbol
staticreadonlycaptureRejectionSymbol: typeofcaptureRejectionSymbol
Inherited from
OAuthService.captureRejectionSymbol
Source
google-auth/node_modules/@types/node/events.d.ts:328
captureRejections
staticcaptureRejections:boolean
Sets or gets the default captureRejection value for all emitters.
Inherited from
OAuthService.captureRejections
Source
google-auth/node_modules/@types/node/events.d.ts:333
defaultMaxListeners
staticdefaultMaxListeners:number
Inherited from
OAuthService.defaultMaxListeners
Source
google-auth/node_modules/@types/node/events.d.ts:334
errorMonitor
staticreadonlyerrorMonitor: typeoferrorMonitor
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error' listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error' event is emitted, therefore the process will still crash if no
regular 'error' listener is installed.
Inherited from
OAuthService.errorMonitor
Source
google-auth/node_modules/@types/node/events.d.ts:327
Methods
__clean()
__clean():
Promise<void>
Clean the service data, can only be used in test mode
Returns
Promise<void>
Inherited from
OAuthService.__clean
Abstract
Source
core/lib/services/service.d.ts:318
_redirect()
_redirect(
ctx):void
Redirect to the OAuth provider
The calling url must be and authorized_uris if defined
Parameters
• ctx: WebContext<any, any>
Returns
void
Inherited from
OAuthService._redirect
Source
core/lib/services/oauth.d.ts:174
_scope()
_scope(
ctx):void
Expose the scope used by the authentication
Parameters
• ctx: OperationContext<any, any>
Returns
void
Inherited from
OAuthService._scope
Source
core/lib/services/oauth.d.ts:155
addDefaultHeaders()
addDefaultHeaders(
ctx):void
Add default headers to the response