Skip to content
Docs
Reference

BackstageClient.identityProviders

BackstageClient.identityProviders in @ticketlayer/backstage.

@ticketlayer/backstage


@ticketlayer/backstage / BackstageClient / identityProviders

identityProviders: {
  get: (id: string, requestOptions?: RequestOptions) => Promise<{
     allowedClientIds: string[];
     authorizationEndpoint: string | null;
     cacheTtl: number;
     clientId: string | null;
     configuration:   | {
      [key: string]: unknown;
      }
        | null;
     createdAt: string;
     emailDomain: string | null;
     id: string;
     isDefault: boolean;
     isEnabled: boolean;
     issuer: string;
     jwksUri: string;
     jwksUriInternal: string | null;
     organisationId: string | null;
     providerType: string;
     scopes: string[];
     supportsPkce: boolean;
     tokenEndpoint: string | null;
     tokenEndpointInternal: string | null;
     updatedAt: string;
     userinfoEndpoint: string | null;
     userinfoEndpointInternal: string | null;
  }>;
  list: (options?: {
     organisationId?: string;
   }, requestOptions?: RequestOptions) => Promise<{
     allowedClientIds: string[];
     authorizationEndpoint: string | null;
     cacheTtl: number;
     clientId: string | null;
     configuration:   | {
      [key: string]: unknown;
      }
        | null;
     createdAt: string;
     emailDomain: string | null;
     id: string;
     isDefault: boolean;
     isEnabled: boolean;
     issuer: string;
     jwksUri: string;
     jwksUriInternal: string | null;
     organisationId: string | null;
     providerType: string;
     scopes: string[];
     supportsPkce: boolean;
     tokenEndpoint: string | null;
     tokenEndpointInternal: string | null;
     updatedAt: string;
     userinfoEndpoint: string | null;
     userinfoEndpointInternal: string | null;
  }[]>;
  update: (id: string, request: {
     allowedClientIds?: string[];
     cacheTtl?: number;
     configuration?: {
      [key: string]: unknown;
     };
     emailDomain?: string | null;
     isDefault?: boolean;
     isEnabled?: boolean;
     scopes?: string[];
   }, requestOptions?: RequestOptions) => Promise<{
     allowedClientIds: string[];
     authorizationEndpoint: string | null;
     cacheTtl: number;
     clientId: string | null;
     configuration:   | {
      [key: string]: unknown;
      }
        | null;
     createdAt: string;
     emailDomain: string | null;
     id: string;
     isDefault: boolean;
     isEnabled: boolean;
     issuer: string;
     jwksUri: string;
     jwksUriInternal: string | null;
     organisationId: string | null;
     providerType: string;
     scopes: string[];
     supportsPkce: boolean;
     tokenEndpoint: string | null;
     tokenEndpointInternal: string | null;
     updatedAt: string;
     userinfoEndpoint: string | null;
     userinfoEndpointInternal: string | null;
  }>;
};

Defined in: client.ts:2448

Identity Providers methods

get()#

get: (id: string, requestOptions?: RequestOptions) => Promise<{
  allowedClientIds: string[];
  authorizationEndpoint: string | null;
  cacheTtl: number;
  clientId: string | null;
  configuration:   | {
   [key: string]: unknown;
   }
     | null;
  createdAt: string;
  emailDomain: string | null;
  id: string;
  isDefault: boolean;
  isEnabled: boolean;
  issuer: string;
  jwksUri: string;
  jwksUriInternal: string | null;
  organisationId: string | null;
  providerType: string;
  scopes: string[];
  supportsPkce: boolean;
  tokenEndpoint: string | null;
  tokenEndpointInternal: string | null;
  updatedAt: string;
  userinfoEndpoint: string | null;
  userinfoEndpointInternal: string | null;
}>;

Get identity provider Get a specific identity provider by ID

Parameters#

ParameterType
idstring
requestOptions?RequestOptions

Returns#

Promise<{ allowedClientIds: string[]; authorizationEndpoint: string | null; cacheTtl: number; clientId: string | null; configuration: | { [key: string]: unknown; } | null; createdAt: string; emailDomain: string | null; id: string; isDefault: boolean; isEnabled: boolean; issuer: string; jwksUri: string; jwksUriInternal: string | null; organisationId: string | null; providerType: string; scopes: string[]; supportsPkce: boolean; tokenEndpoint: string | null; tokenEndpointInternal: string | null; updatedAt: string; userinfoEndpoint: string | null; userinfoEndpointInternal: string | null; }>

Operation Id#

getIdentityProvider

list()#

list: (options?: {
  organisationId?: string;
}, requestOptions?: RequestOptions) => Promise<{
  allowedClientIds: string[];
  authorizationEndpoint: string | null;
  cacheTtl: number;
  clientId: string | null;
  configuration:   | {
   [key: string]: unknown;
   }
     | null;
  createdAt: string;
  emailDomain: string | null;
  id: string;
  isDefault: boolean;
  isEnabled: boolean;
  issuer: string;
  jwksUri: string;
  jwksUriInternal: string | null;
  organisationId: string | null;
  providerType: string;
  scopes: string[];
  supportsPkce: boolean;
  tokenEndpoint: string | null;
  tokenEndpointInternal: string | null;
  updatedAt: string;
  userinfoEndpoint: string | null;
  userinfoEndpointInternal: string | null;
}[]>;

List identity providers List all identity providers for the organisation

Parameters#

ParameterType
options?{ organisationId?: string; }
options.organisationId?string
requestOptions?RequestOptions

Returns#

Promise<{ allowedClientIds: string[]; authorizationEndpoint: string | null; cacheTtl: number; clientId: string | null; configuration: | { [key: string]: unknown; } | null; createdAt: string; emailDomain: string | null; id: string; isDefault: boolean; isEnabled: boolean; issuer: string; jwksUri: string; jwksUriInternal: string | null; organisationId: string | null; providerType: string; scopes: string[]; supportsPkce: boolean; tokenEndpoint: string | null; tokenEndpointInternal: string | null; updatedAt: string; userinfoEndpoint: string | null; userinfoEndpointInternal: string | null; }[]>

Operation Id#

listIdentityProviders

update()#

update: (id: string, request: {
  allowedClientIds?: string[];
  cacheTtl?: number;
  configuration?: {
   [key: string]: unknown;
  };
  emailDomain?: string | null;
  isDefault?: boolean;
  isEnabled?: boolean;
  scopes?: string[];
}, requestOptions?: RequestOptions) => Promise<{
  allowedClientIds: string[];
  authorizationEndpoint: string | null;
  cacheTtl: number;
  clientId: string | null;
  configuration:   | {
   [key: string]: unknown;
   }
     | null;
  createdAt: string;
  emailDomain: string | null;
  id: string;
  isDefault: boolean;
  isEnabled: boolean;
  issuer: string;
  jwksUri: string;
  jwksUriInternal: string | null;
  organisationId: string | null;
  providerType: string;
  scopes: string[];
  supportsPkce: boolean;
  tokenEndpoint: string | null;
  tokenEndpointInternal: string | null;
  updatedAt: string;
  userinfoEndpoint: string | null;
  userinfoEndpointInternal: string | null;
}>;

Update identity provider Update an identity provider configuration

Parameters#

ParameterTypeDescription
idstring-
request{ allowedClientIds?: string[]; cacheTtl?: number; configuration?: { [key: string]: unknown; }; emailDomain?: string | null; isDefault?: boolean; isEnabled?: boolean; scopes?: string[]; }-
request.allowedClientIds?string[]Example [ "backstage-app" ]
request.cacheTtl?numberExample 600
request.configuration?{ [key: string]: unknown; }Example {}
request.emailDomain?string | nullExample @example.com
request.isDefault?booleanExample false
request.isEnabled?booleanExample true
request.scopes?string[]Example [ "openid", "profile", "email" ]
requestOptions?RequestOptions-

Returns#

Promise<{ allowedClientIds: string[]; authorizationEndpoint: string | null; cacheTtl: number; clientId: string | null; configuration: | { [key: string]: unknown; } | null; createdAt: string; emailDomain: string | null; id: string; isDefault: boolean; isEnabled: boolean; issuer: string; jwksUri: string; jwksUriInternal: string | null; organisationId: string | null; providerType: string; scopes: string[]; supportsPkce: boolean; tokenEndpoint: string | null; tokenEndpointInternal: string | null; updatedAt: string; userinfoEndpoint: string | null; userinfoEndpointInternal: string | null; }>

Operation Id#

updateIdentityProvider