Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ramiroluz opened this issue Jun 19, 2024 · 2 comments
Open

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

ramiroluz opened this issue Jun 19, 2024 · 2 comments

Comments

@ramiroluz
Copy link

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

@ramiroluz
Copy link
Author

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": "home_page",
"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
Copy link
Author

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)" 
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant