Created
March 6, 2019 14:25
-
-
Save jgomer2001/bcf3157855f1494609066960c4fe2456 to your computer and use it in GitHub Desktop.
Full passport config sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"conf": { | |
"serverURI": "https://acme.co", | |
"serverWebPort": 8090, | |
"postProfileEndpoint": "https://acme.co/oxauth/postlogin.htm", | |
"spTLSCert": "/etc/certs/passport-sp.crt", | |
"spTLSKey": "/etc/certs/passport-sp.key", | |
"logging": { | |
"level": "info", | |
"consoleLogOnly" : false, | |
"activeMQConf": { | |
"enabled": false, | |
"host": "", | |
"username": "", | |
"password": "", | |
"port": 0 | |
} | |
} | |
}, | |
"idpInitiated": { | |
"openidclient": { | |
"authorizationEndpoint": "https://acme.co/oxauth/restv1/authorize", | |
"clientId": "@!3245.DF39.6A34.9E97!0001!513A.9888!0008!2147.2479", | |
"acrValues": "passport_saml" | |
}, | |
"authorizationParams": [ | |
{ | |
"provider" : "your_idp_name_1", | |
"redirect_uri": "redirect_uri_1", | |
"response_type": "code", | |
"scope": "openid user_name email" | |
} | |
] | |
}, | |
"providers": [ | |
{ | |
"id": "github", | |
"type": "oauth", | |
"displayName": "Github", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-github", | |
"options": { | |
"clientID": "bef7418182...32", | |
"clientSecret": "c8d72d94475e...1" | |
}, | |
"mapping" : "github" | |
}, | |
{ | |
"id": "yahoos", | |
"type": "oauth", | |
"displayName": "Yahoo!", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-yahoo-oauth2", | |
"options": { | |
"clientID": "dj0yJmk9R3VScG1k...XQmc3Y9MCZ4PTlm", | |
"clientSecret": "de41d7ce8d760a5d...c84735510057f42", | |
"callbackURL": "https://tinyurl.com/y3...zl" | |
}, | |
"mapping" : "yahoo" | |
}, | |
{ | |
"id": "twitter", | |
"type": "oauth", | |
"displayName": "Twitter", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-twitter", | |
"options": { | |
"clientID": "LdcrOrQ3...iR3i", | |
"clientSecret": "DTHHj4U...KjfU6ZduNZj9qEy" | |
}, | |
"mapping" : "twitter" | |
}, | |
{ | |
"id": "dc.gluu.omg", | |
"type": "openidconnect", | |
"displayName": "DC", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-openidconnect", | |
"options": { | |
"clientID": "@!6B10.B984.FE62.451A!0001!95BD.B0C0!0008!F68E.286C.9B78.36EA", | |
"clientSecret": "secret", | |
"issuer": "https://dc.gluu.omg", | |
"authorizationURL": "https://dc.gluu.omg/oxauth/restv1/authorize", | |
"tokenURL": "https://dc.gluu.omg/oxauth/restv1/token", | |
"userInfoURL": "https://dc.gluu.omg/oxauth/restv1/userinfo", | |
"scope": "profile user_name email" | |
}, | |
"mapping" : "openidconnect-default" | |
}, | |
{ | |
"id": "oxd_dc", | |
"type": "oxd", | |
"displayName": "DC by oxd", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-oxd", | |
"options": { | |
"clientID": "@!6B10.B984.FE62.451A!0001!95BD.B0C0!0008!A779.CB22.20A5.E9E2", | |
"clientSecret": "547b74dd-c598-b1e5-8689132a3aee", | |
"oxdID": "62cb4ee9-16f6-b30b-b10f99717bff", | |
"issuer": "https://dc.gluu.omg", | |
"oxdServer": "https://acme.co:8443" | |
}, | |
"mapping" : "oxd-default" | |
}, | |
{ | |
"id": "saml-idp", | |
"type": "saml", | |
"displayName": "Sample IDP", | |
"logo_img" : "...", | |
"enabled": true, | |
"passportStrategyId": "passport-saml", | |
"options": { | |
"entryPoint": "http://pow.erwo.lf:7000/saml/sso", | |
"cert": "MIIDnT...Eu+OtJBbMB4=", | |
"issuer": "urn:test", | |
"identifierFormat" : "urn:oasis:names:tc:SAML:2.0:nameid-format:transient", | |
"authnRequestBinding": "HTTP-POST", | |
"skipRequestCompression" : "true", | |
"acceptedClockSkewMs": "20000" | |
}, | |
"mapping" : "saml_basic_profile" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment