Last active
March 1, 2019 14:24
-
-
Save jgomer2001/04b11b6c6f9b3203508da609caed714f to your computer and use it in GitHub Desktop.
Sample providers configuration
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
[ | |
{ | |
"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" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notes:
passportStrategyId
: Indicates the passport module that should be (already) installed to support this provideroptions
: Resembles the object to be passed in the constructor of the strategymapping
: The mapping profile to be used when provisioning a user originated by this external providerpassportAuthnParams
: Custom params to supply when the strategy is instantiated