App
@appfire/fuse-auth-core • Docs
@appfire/fuse-auth-core / App
Class: abstract
App
Abstract class that serves as the base for the App class.
Extended by
Constructors
new App()
new App(
key
,clientKey
,oauthClientId
,sharedSecret
):App
Constructs a new instance of the App class.
Parameters
• key: string
The appKey for Atlassian and appId for Monday.
• clientKey: string
The clientKey for Atlassian and account ID for Monday.
• oauthClientId: string
The oauthClientId for Atlassian and clientId for Monday OAuth.
• sharedSecret: string
The sharedSecret for Atlassian and clientSecret for Monday OAuth.
Returns
Defined in
Properties
clientKey
protected
clientKey:string
Defined in
eventType
protected
eventType:string
Defined in
fuseSecret
protected
fuseSecret:string
Defined in
key
protected
key:string
Defined in
oauthClientId
protected
oauthClientId:string
Defined in
productType
protected
productType:string
Defined in
sharedSecret
protected
sharedSecret:string
Defined in
Methods
getClaims()
getClaims(
token
):Claims
Parameters
• token: string
Returns
Defined in
getClientKey()
getClientKey():
string
Returns
string
Defined in
getFuseSecret()
getFuseSecret():
string
Returns
string
Defined in
getKey()
getKey():
string
Returns
string
Defined in
getOauthClientId()
getOauthClientId():
string
Returns
string
Defined in
getProductType()
getProductType():
string
Returns
string
Defined in
getSharedSecret()
getSharedSecret():
string
Returns
string
Defined in
setEventType()
setEventType(
eventType
):void
Parameters
• eventType: string
Returns
void
Defined in
setFuseSecret()
setFuseSecret(
fuseSecret
):void
Parameters
• fuseSecret: string
Returns
void
Defined in
setProductType()
setProductType(
productType
):void
Parameters
• productType: string
Returns
void
Defined in
toJSON()
toJSON():
object
Converts the App object to JSON.
Returns
object
The JSON representation of the App object.
Defined in
validateFuseToken()
validateFuseToken(
token
):boolean
Validates a Fuse token.
Parameters
• token: string
The Fuse token to validate.
Returns
boolean
True if the token is valid, false otherwise.
Defined in
validateToken()
abstract
validateToken(token
,request
):boolean
Abstract method for validating a token.
Parameters
• token: string
The token to validate.
• request: Request
The JWT request object.
Returns
boolean
True if the token is valid, false otherwise.