Skip to main content

App

@appfire/fuse-auth-coreDocs


@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

App

Defined in

products/App.ts:66

Properties

clientKey

protected clientKey: string

Defined in

products/App.ts:52


eventType

protected eventType: string

Defined in

products/App.ts:57


fuseSecret

protected fuseSecret: string

Defined in

products/App.ts:55


key

protected key: string

Defined in

products/App.ts:51


oauthClientId

protected oauthClientId: string

Defined in

products/App.ts:53


productType

protected productType: string

Defined in

products/App.ts:56


sharedSecret

protected sharedSecret: string

Defined in

products/App.ts:54

Methods

getClaims()

getClaims(token): Claims

Parameters

token: string

Returns

Claims

Defined in

products/App.ts:146


getClientKey()

getClientKey(): string

Returns

string

Defined in

products/App.ts:122


getFuseSecret()

getFuseSecret(): string

Returns

string

Defined in

products/App.ts:134


getKey()

getKey(): string

Returns

string

Defined in

products/App.ts:119


getOauthClientId()

getOauthClientId(): string

Returns

string

Defined in

products/App.ts:125


getProductType()

getProductType(): string

Returns

string

Defined in

products/App.ts:131


getSharedSecret()

getSharedSecret(): string

Returns

string

Defined in

products/App.ts:128


setEventType()

setEventType(eventType): void

Parameters

eventType: string

Returns

void

Defined in

products/App.ts:143


setFuseSecret()

setFuseSecret(fuseSecret): void

Parameters

fuseSecret: string

Returns

void

Defined in

products/App.ts:140


setProductType()

setProductType(productType): void

Parameters

productType: string

Returns

void

Defined in

products/App.ts:137


toJSON()

toJSON(): object

Converts the App object to JSON.

Returns

object

The JSON representation of the App object.

Defined in

products/App.ts:109


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

products/App.ts:91


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.

Defined in

products/App.ts:84