collective / volto-authomatic

Social Login for Plone sites
MIT License
4 stars 1 forks source link

Add an example of the json configuration for keycloak. #19

Open ramiroluz opened 2 weeks ago

ramiroluz commented 2 weeks ago

Add some examples of the json configuration one need to set for a local keycloak installation.

ramiroluz commented 2 weeks ago

Google example:```

{"google": { "id": 1, "display": { "title": "Google", "cssclasses": { "button": "plone-btn plone-btn-default", "icon": "glypicon glyphicon-google" }, "as_form": false }, "propertymap": { "email": "email", "link": "homepage", "location": "location", "name": "fullname" }, "class": "authomatic.providers.oauth2.Google", "consumer_key": "", "consumer_secret": "", "scope": ["profile", "email"], "user_authorization_params": { "hd": "wildcardcorp.com" }, "access_headers": { "User-Agent": "Plone (pas.plugins.authomatic)" } }

ramiroluz commented 2 weeks ago

Azzure example:

{
    "azure": {
        "id": 1,
        "display": {
            "title": "Azure",
            "cssclasses": {
                "button": "plone-btn plone-btn-default",
                "icon": "glypicon glyphicon-github" 
            },
            "as_form": false
        },
        "propertymap": {
            "email": "email",
            "name": "fullname" 
        },
        "class_": "authomatic.providers.oauth2.MicrosoftOnline",
        "domain": "ADD_YOUR_TENANT_ID",
        "consumer_key": "YOUR_APP_REGISTRATION_CLIENT_ID",
        "consumer_secret": "YOUR_CLIENT_SECRET",
        "scope": ["openid profile"],
        "access_headers": {
            "User-Agent": "Plone (pas.plugins.authomatic)" 
        }
    }
}