Initiate
Initiate an consumer-client by passing a configuration:
const oidcConsumer = new OidcConsumer({
scope: "openid profile email",
callback_route: "/register",
clientConfig: {
client: {
id: CLIENT_ID,
secret: CLIENT_SECRET,
},
auth: {
tokenHost: "https://example.site.com",
tokenPath: "/auth/realms/realm-example/protocol/openid-connect/token",
revokePath: "/auth/realms/realm-example/protocol/openid-connect/logout",
authorizePath: "/auth/realms/realm-example/protocol/openid-connect/auth",
},
options: {
authorizationMethod: "body",
},
},
});