fixed api reports
Signed-off-by: Manuel Scurti <manuel.scurti@agilelab.it>
This commit is contained in:
@@ -30,9 +30,13 @@ export function getBearerTokenFromAuthorizationHeader(
|
||||
// @public
|
||||
export class IdentityClient {
|
||||
authenticate(token: string | undefined): Promise<BackstageIdentityResponse>;
|
||||
static create(options: {
|
||||
discovery: PluginEndpointDiscovery;
|
||||
issuer: string;
|
||||
}): IdentityClient;
|
||||
static create(options: IdentityClientOptions): IdentityClient;
|
||||
}
|
||||
|
||||
// @public
|
||||
export type IdentityClientOptions = {
|
||||
discovery: PluginEndpointDiscovery;
|
||||
issuer: string;
|
||||
algorithms?: string[];
|
||||
};
|
||||
```
|
||||
|
||||
@@ -29,6 +29,12 @@ import { BackstageIdentityResponse } from './types';
|
||||
|
||||
const CLOCK_MARGIN_S = 10;
|
||||
|
||||
/**
|
||||
* An identity client options object which allows extra configurations
|
||||
*
|
||||
* @experimental This is not a stable API yet
|
||||
* @public
|
||||
*/
|
||||
export type IdentityClientOptions = {
|
||||
discovery: PluginEndpointDiscovery;
|
||||
issuer: string;
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
export { getBearerTokenFromAuthorizationHeader } from './getBearerTokenFromAuthorizationHeader';
|
||||
export { IdentityClient } from './IdentityClient';
|
||||
export type { IdentityClientOptions } from './IdentityClient';
|
||||
export type {
|
||||
BackstageIdentityResponse,
|
||||
BackstageSignInResult,
|
||||
|
||||
Reference in New Issue
Block a user