Platform Class Documentation

Table of Contents


Introduction

The Platform class represents an LTI® Consumer.


Documentation

get Platform.platformUrl: string

get Platform.clientId: string

get platform.kid: string

Platform.platformPublicKey(): Promise<KeyObject>

Platform.platformPrivateKey(): Promise<KeyObject>

get Platform.name: string

Platform.setPlatformName(name: string): Promise<void>

get Platform.authToken: AuthConfigType

Platform.setAuthConfig(method?: AuthTokenMethod, key?: string): Promise<void>

get Platform.authenticationEndpoint: string

Platform.setAuthenticationEndpoint(authenticationEndpoint: string): Promise<void>

get Platform.accessTokenEndpoint: string

Platform.setAccessTokenEndpoint(accessTokenEndpoint: string): Promise<void>

get Platform.active: boolean

Platform.setPlatformActive(active: boolean): Promise<void>

Platform.getAccessToken(scopes: string): Promise<AccessTokenType>

Platform.platformParams(): Promise<PlatformProperties & { publicKey: KeyObject }>

Platform.delete(): Promise<void>


License

APACHE2 License

Learning Tools Interoperability® (LTI®) is a trademark of the IMS Global Learning Consortium, Inc. (https://www.imsglobal.org)

This library is a derivative work of CVM Costa's original LTIJS library.