Skip to content

Instantly share code, notes, and snippets.

@mikroskeem
Created March 16, 2019 22:54
Show Gist options
  • Save mikroskeem/243f4ca1a57fad11a447ab95881f3635 to your computer and use it in GitHub Desktop.
Save mikroskeem/243f4ca1a57fad11a447ab95881f3635 to your computer and use it in GitHub Desktop.
Mattermost OAuth 2.0 endpoints

Mattermost OAuth2.0 endpoints

{mattermost_url} = your Mattermost instance url

  • https://{mattermost_url}/oauth/authorize # auth_url
  • https://{mattermost_url}/oauth/access_token # token_url
  • https://{mattermost_url}/api/v4/users/me # so-called api_url

Notes

Grafana

In Grafana config, there's this section:

; Set to true to enable sending client_id and client_secret via POST body instead of Basic authentication HTTP header
; This might be required if the OAuth provider is not RFC6749 compliant, only supporting credentials passed via POST payload
send_client_credentials_via_post = true

Setting this to true made Mattermost speak with Grafana properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment