Skip to content

Instantly share code, notes, and snippets.

@jgomer2001
Last active March 1, 2019 14:24
Show Gist options
  • Save jgomer2001/04b11b6c6f9b3203508da609caed714f to your computer and use it in GitHub Desktop.
Save jgomer2001/04b11b6c6f9b3203508da609caed714f to your computer and use it in GitHub Desktop.
Sample providers configuration
[
{
"id": "windowslive",
"type": "oauth",
"displayName": "Windows Live",
"logo_img" : "...",
"enabled": false,
"passportStrategyId": "passport-windowslive",
"passportAuthnParams" : "{\"scope\": [ \"wl.signin\", \"wl.basic\"]}",
"options": {
"clientID": "...",
"clientSecret": "...",
"extraParam": "MS Windows rocks"
},
"mapping" : "oauth"
},
{
"id" : "ce-dev3",
"type": "openidconnect",
"displayName": "Gluu Server at ce-dev3",
"logo_img" : "...",
"enabled": true,
"passportStrategyId": "passport-openidconnect",
"options": {
"clientID": "...",
"clientSecret": "...",
"issuer" : "https://ce-dev3.gluu.org",
"authorizationURL" : "...",
"tokenURL" : "...",
"userInfoURL": "...",
"scope": "profile user_name email"
},
"mapping" : "openidconnect"
},
{
"id" : "my-saml-IPD1",
"type": "saml",
"displayName": "Some alien IDP",
"logo_img" : "...",
"enabled": true,
"passportStrategyId": "passport-saml",
"options": {
"entryPoint": "https://idp1.example.com/idp/profile/SAML2/POST/SSO",
"issuer" : "...",
"cert" : "...idp public certicate in single line...",
"identifierFormat" : "urn:oasis:names:tc:SAML:2.0:nameid-format:transient",
"authnRequestBinding": "HTTP-POST",
"disableRequestedAuthnContext": "true",
"skipRequestCompression" : "false",
"additionalAuthorizeParams": "{\"param1\" : \"SaML\",\"param2\": \"is silly\"}"
},
"mapping" : "saml_ldap"
},
{
"id" : "my-saml-IPD2",
"type": "saml",
"displayName": "A sample mcguinness IDP, see https://github.com/mcguinness/saml-idp",
"logo_img" : "...",
"enabled": false,
"passportStrategyId": "passport-saml",
"options": {
"entryPoint": "http://host:7000/saml/sso",
"issuer" : "...",
"cert" : "...idp public certicate in single line...",
"identifierFormat" : "urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"
},
"mapping" : "saml_basic"
}
]
@jgomer2001
Copy link
Author

jgomer2001 commented Jan 4, 2019

Notes:

  • passportStrategyId: Indicates the passport module that should be (already) installed to support this provider
  • options: Resembles the object to be passed in the constructor of the strategy
  • mapping: The mapping profile to be used when provisioning a user originated by this external provider
  • passportAuthnParams : Custom params to supply when the strategy is instantiated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment