Mattermost Teams Edition— Replacing Gitlab SSO with Keycloak

  • Mattermost Server 5.13.2
  • Keycloak 6.0.1
  • OpenLDAP 2.4.47
  1. Client ID (In my case I’ve chosen the id mattermost)
  2. Enabled (ON)
  3. Client Protocol (openid-connect)
  4. Access Type (confidential)
  5. Standard Flow Enabled (ON)
  6. Valid Redirect URIs (Your mattermost base address + /signup/gitlab/complete)
  1. Name: mattermostId (You can choose whatever you’d like)
  2. Mapper Type: User Attribute
  3. User Attribute: mattermostId (You can choose whatever you’d like)
  4. Token Claim Name: id (Must be this)
  5. Claim JSON Type: long (Must be this)
  6. Add to userinfo: ON (Must be this)
  1. Name: username (You can choose whatever you’d like)
  2. Mapper Type: User Property
  3. Property: username (Must be this)
  4. Token Claim Name: username (Must be this)
  5. Claim JSON Type: String (Must be this)
  6. Add to userinfo: ON

Optional: LDAP Setup

Troubleshooting

  • Invalid parameter: redirect_uri
  • Could not parse auth data out of gitlab user object
  • Token request failed

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

What’s inside the table? How to build customized HTML tables?

Getting started with Git Workflow

A python Tool for OSCP preparation…

Introduction to Asynchronous Task Queueing Celery

How Brex Cash Moves Your Money

How important is JIRA Tool for QA Software Testing Professionals?

Animate that icon! Easily create Animated Vector Drawables

HacktoberFest Extended Bhubaneswar 2019 —  The Windup

Cover image of Hacktoberfest Extended Bhubaneswar Organized by Emisha Community

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Taylor Smith

Taylor Smith

More from Medium

Deploy IBM Sterling Order Manager Software on OpenShift — Part 3

OAuth 2.0 explaining with simple example.

Solace Selector

Green-IT Software Development