Skip to main content

Class: OauthService

Hierarchy

  • "medusa-interfaces"

    OauthService

Constructors

constructor

new OauthService(cradle)

Parameters

NameType
cradleany

Overrides

OauthService.constructor

Defined in

services/oauth.js:10

Properties

container_

container_: any

Defined in

services/oauth.js:15


eventBus_

eventBus_: any

Defined in

services/oauth.js:17


manager

manager: any

Defined in

services/oauth.js:14


oauthRepository_

oauthRepository_: any

Defined in

services/oauth.js:16


Events

Static Events: Object

Type declaration

NameType
TOKEN_GENERATEDstring
TOKEN_REFRESHEDstring

Defined in

services/oauth.js:5

Methods

create

create(data): Promise<any>

Parameters

NameType
dataany

Returns

Promise<any>

Defined in

services/oauth.js:32


generateToken

generateToken(appName, code, state): Promise<any>

Parameters

NameType
appNameany
codeany
stateany

Returns

Promise<any>

Defined in

services/oauth.js:66


list

list(selector): any

Parameters

NameType
selectorany

Returns

any

Defined in

services/oauth.js:27


refreshToken

refreshToken(appName): Promise<any>

Parameters

NameType
appNameany

Returns

Promise<any>

Defined in

services/oauth.js:96


registerOauthApp

registerOauthApp(appDetails): Promise<any>

Parameters

NameType
appDetailsany

Returns

Promise<any>

Defined in

services/oauth.js:56


retrieveByName

retrieveByName(appName): any

Parameters

NameType
appNameany

Returns

any

Defined in

services/oauth.js:20


update

update(id, update): Promise<any>

Parameters

NameType
idany
updateany

Returns

Promise<any>

Defined in

services/oauth.js:45