auth.config.ts•1.04 kB
import { jwksDataUri } from "../authCredentials.js";
// This deploy needs to succeed for these tests to work so these providers
// all need to be valid. Invalid providers and the error messages they cause
// are tested in analyze tests.
export default {
providers: [
{
type: "customJwt",
applicationID: "App 1",
issuer: "https://issuer.example.com/1",
jwks: jwksDataUri,
algorithm: "RS256",
},
{
type: "customJwt",
// application ID (aud) is not required
//applicationID: "App 2",
issuer: "https://issuer.example.com/no-aud-specified",
jwks: jwksDataUri,
algorithm: "RS256",
},
{
type: "customJwt",
applicationID: "App 3",
issuer: "https://issuer.example.com/3",
jwks: "https://example.com/not/a/jwks",
algorithm: "RS256",
},
{
type: "customJwt",
applicationID: "App 4",
issuer: "https://issuer.example.com/4",
jwks: "data:invalid,not-a-valid-jwks",
algorithm: "RS256",
},
],
};