Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
class AuthleteApiImpl
implements AuthleteApi
import { AuthleteApiImpl } from "https://deno.land/x/authlete_deno@v1.2.9/src/api/authlete_api_impl.ts";

An implementation of AuthleteApi interface.

Constructors

new
AuthleteApiImpl(config: AuthleteConfiguration)

The constructor.

Properties

private
baseUrl: string

The base URL of Authlete API.

private
serviceCredentials: BasicCredentials

The service credentials.

private
serviceOwnerCredentials: BasicCredentials

The service owner credentials.

private
timeout: number

The fetch timeout.

Methods

private
callApi<TResponse>(
path: string,
method: HttpMethod,
credentials: BasicCredentials,
params?: QueryParams,
requestBody?: any,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API.

private
callDeleteApi(path: string, credentials: BasicCredentials)

Call an Authlete API with HTTP DELETE method.

private
callGetApi<TResponse>(
path: string,
credentials: any,
params?: QueryParams,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP GET method.

private
callPostApi<TResponse>(
path: string,
credentials: BasicCredentials,
requestBody: any,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP POST method.

private
callServiceDeleteApi(path: string)

Call an Authlete API with HTTP DELETE method and the service credentials.

private
callServiceGetApi<TResponse>(
path: string,
params?: QueryParams,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP GET method and the service credentials.

private
callServiceOwnerDeleteApi(path: string)

Call an Authlete API with HTTP DELETE method and the service owner credentials.

private
callServiceOwnerGetApi<TResponse>(
path: string,
params?: QueryParams,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP GET method and the service owner credentials.

private
callServiceOwnerPostApi<TResponse>(
path: string,
requestBody: any,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP POST method and the service owner credentials.

private
callServicePostApi<TResponse>(
path: string,
requestBody: any,
clazz?: ResponseClass<TResponse>,
)

Call an Authlete API with HTTP POST method and the service credentials.

deleteClient(clientId: number)
deleteService(apiKey: number)
getClient(clientId: number)
getClientList(
developer?: string,
start?: number,
end?: number,
)
getService(apiKey: number)
getServiceConfiguration(pretty?: boolean)
getServiceJwks(pretty?: boolean, includePrivateKeys?: boolean)
getServiceList(start?: number, end?: number)