hackmdio / hackmdio/codimd-docs

Fix Mattermost OAuth2 documentation

Ouverte
#5 0 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Aucune donnée de langage
Étoiles
2
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.