update the jwks external auth to use singular nouns

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-05-22 16:40:53 +02:00
parent 0639b07aa1
commit c2ea75f473
6 changed files with 112 additions and 46 deletions
+10 -10
View File
@@ -226,30 +226,30 @@ export interface Config {
type: 'jwks';
options: {
/**
* Sets the algorithms that should be used to verify the JWT tokens.
* The full URL of the JWKS endpoint.
*/
url: string;
/**
* Sets the algorithm(s) that should be used to verify the JWT tokens.
* The passed JWTs must have been signed using one of the listed algorithms.
*/
algorithms?: string[];
algorithm?: string | string[];
/**
* Sets the issuers that should be used to verify the JWT tokens.
* Sets the issuer(s) that should be used to verify the JWT tokens.
* Passed JWTs must have an `iss` claim which matches one of the specified issuers.
*/
issuers?: string[];
issuer?: string | string[];
/**
* Sets the audiences that should be used to verify the JWT tokens.
* Sets the audience(s) that should be used to verify the JWT tokens.
* The passed JWTs must have an "aud" claim that matches one of the audiences specified,
* or have no audience specified.
*/
audiences?: string[];
audience?: string | string[];
/**
* Sets an optional subject prefix. Passes the subject to called plugins.
* Useful for debugging and tracking purposes.
*/
subjectPrefix?: string;
/**
* Sets the URL containing the JWKS endpoint.
*/
url: string;
};
}
>;