hackmdio / hackmdio/codimd-docs

Fix Mattermost OAuth2 documentation

Offen
#5 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
2
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.