hackmdio / hackmdio/codimd-docs

Fix Mattermost OAuth2 documentation

Open
#5 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
No language data
Stars
2
Forks
11
PR merge metrics
No merged PRs in 30d

Description

The documentation found [here](https://github.com/hackmdio/codimd-docs/blob/master/authentication/oauth-mattermost.md) states that the callback URL should be `/auth/oauth2/callback`.

When using this configuration in Mattermost, the following error is raised : `invalid_request: Supplied redirect_uri did not match registered callback_url`.

Indeed, when inspecting the request to Mattermost, the URL looks like :

```
https:///oauth/authorize?response_type=code&redirect_uri=/auth/mattermost/callback&client_id=
```

So that the callback URL should be `/auth/mattermost/callback`. It works with this setup.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.