use openid-client with passport

This commit is contained in:
Mészáros Mihály
2019-05-13 11:41:34 +02:00
parent 26389993a3
commit 28f9e72612
4 changed files with 282 additions and 122 deletions
+16 -4
View File
@@ -1,11 +1,23 @@
module.exports =
{
// oAuth2 conf
oauth2 :
auth :
{
clientID : '',
clientSecret : '',
callbackURL : 'https://mYDomainName:port/auth-callback'
/*
The issuer URL for OpenID Connect discovery
The OpenID Provider Configuration Document
could be discovered on:
issuerURL + '/.well-known/openid-configuration'
*/
issuerURL : 'https://example.com'
clientOptions :
{
client_id : '',
client_secret : '',
scope : 'openid email profile'
// where client.example.com is your multiparty meeting server
redirect_uri : 'https://client.example.com/auth/callback'
}
},
// Listening hostname for `gulp live|open`.
domain : 'localhost',