Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Mattermost OAuth2 documentation #5

Open
Chostakovitch opened this issue Oct 27, 2020 · 0 comments
Open

Fix Mattermost OAuth2 documentation #5

Chostakovitch opened this issue Oct 27, 2020 · 0 comments

Comments

@Chostakovitch
Copy link

The documentation found here states that the callback URL should be <your-codimd-url>/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://<mattermost url>/oauth/authorize?response_type=code&redirect_uri=<codimd url>/auth/mattermost/callback&client_id=<client id>

So that the callback URL should be <your-codimd-url>/auth/mattermost/callback. It works with this setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant