Description
We are using a self-hosted Keycloak as our oauth server, which works well enough for login. The issue is that we don’t see the user’s avatar image provided. The settings for the custom oauth provider:
url: https://keycloak-test.example/auth
token path: /realms/master/protocol/openid-connect/token
token sent via: Header
identity token sent via: Same as “Token Sent Via”
identity path: /realms/master/protocol/openid-connect/userinfo
authorization path: /realms/master/protocol/openid-connect/auth
scope: openid
param name for access token: access_token
id: rocket-chat-client
username field: preferred_username
Roles/Groups field name: groups
avatar field: picture
user data group map: rocket.cat
Map Roles/Groups to channels: false
Merge Roles from SSO: false
Merge users: false
Show Button on Login Page: true
Example response from https://keycloak-test.example/auth/realms/master/protocol/openid-connect/userinfo :
{
"sub": "34218f1b-06d9-4afd-a9dd-4421b23b183a",
"email_verified": true,
"name": "Albert Einsetin",
"groups": [
"create-realm",
"offline_access",
"uma_authorization"
],
"preferred_username": "lightrider",
"given_name": "Albert",
"family_name": "Einstein",
"picture": "https://pm1.narvii.com/6820/8350be28ffe79ba6c375c171473ddb2fbf9ca166v2_hq.jpg",
"email": "lightrider@example"
}
Server Setup Information
- Version of Rocket.Chat Server: 3.11.1
- Operating System: Ubuntu 18.04 LTS
- Deployment Method: Docker
- Number of Running Instances: 1
- DB Replicaset Oplog:
- NodeJS Version:
- MongoDB Version:
- Proxy: nginx
- Firewalls involved: