@voidkey/broker-core
Version:
Core credential minting logic for the voidkey zero-trust credential broker
22 lines • 711 B
TypeScript
import { BrokerAuthProvider } from './broker-auth-provider';
export interface ClientCredentialsConfig {
name: string;
clientId: string;
clientSecret: string;
tokenEndpoint: string;
audience?: string;
scope?: string;
}
/**
* Client credentials OAuth2 flow for broker authentication
*/
export declare class ClientCredentialsProvider implements BrokerAuthProvider {
private config;
constructor(config: ClientCredentialsConfig);
getType(): string;
getName(): string;
acquireToken(): Promise<string>;
isTokenValid(token: string): Promise<boolean>;
getTokenExpiry(token: string): Promise<number | null>;
}
//# sourceMappingURL=client-credentials-provider.d.ts.map