Provided by default via the /callback
route. Call this to override or have other
callback routes with
app.get('/callback', (req, res) => {
res.oidc.callback({ redirectUri: 'https://example.com/callback' });
});
Optional
opts: CallbackOptionsProvided by default via the /login
route. Call this to override or have other
login routes with custom authorizationParams or returnTo
app.get('/admin-login', (req, res) => {
res.oidc.login({
returnTo: '/admin',
authorizationParams: {
scope: 'openid profile email admin:user',
}
});
});
Optional
opts: LoginOptionsProvided by default via the /logout
route. Call this to override or have other
logout routes with custom returnTo
app.get('/admin-logout', (req, res) => {
res.oidc.logout({ returnTo: '/admin-welcome' })
});
Optional
opts: LogoutOptions
The response authentication context found on the Express response when OpenID Connect auth middleware is added to your application.