Variable observeClientAuthentication
observeClientAuthentication: (
opts: any,
) => Promise<
| {
alg?: undefined;
authenticated: boolean;
errorCode: string;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
}
| {
alg?: undefined;
authenticated: boolean;
errorCode: any;
method: string;
oauthError: any;
status: any;
why: any;
}
| {
alg: any;
authenticated: boolean;
errorCode?: undefined;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
},
> = observeClientAuthentication
Type Declaration
-
- (
opts: any,
): Promise<
| {
alg?: undefined;
authenticated: boolean;
errorCode: string;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
}
| {
alg?: undefined;
authenticated: boolean;
errorCode: any;
method: string;
oauthError: any;
status: any;
why: any;
}
| {
alg: any;
authenticated: boolean;
errorCode?: undefined;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
},
>
-
Returns Promise<
| {
alg?: undefined;
authenticated: boolean;
errorCode: string;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
}
| {
alg?: undefined;
authenticated: boolean;
errorCode: any;
method: string;
oauthError: any;
status: any;
why: any;
}
| {
alg: any;
authenticated: boolean;
errorCode?: undefined;
method: string;
oauthError?: undefined;
status?: undefined;
why: string;
},
>
a promise of { authenticated: true, method, alg, why }, or { authenticated: false, method, errorCode, why, ... }
Observes, in every mode, whether a token request authenticated the client by the method its entry declares.