benweet / stackedit

In-browser Markdown editor
https://stackedit.io/
Apache License 2.0
21.48k stars 2.7k forks source link

Gitlab Integration Error #1801

Open ocundale opened 1 year ago

ocundale commented 1 year ago

Whilst attempting to integrate with Gitlab, I have found an issue:

After adding all the details, I click 'OK' to complete Gitlab integration from stackedit and stackedit opens a new window to authorize:

https://gitlab.com/oauth/authorize?client_id=XXXX&response_type=token&scope=api&state=SSPaTC2Ee7Ias9da&redirect_uri=https%3A%2F%2Fstackedit.io%2Foauth2%2Fcallback _(clientid has been replaced in this example)

However, Gitlab returns an error here, saying:

An error has occurred The authorization server does not support this response type.

yumyo commented 1 year ago

Same here

TheLotusMind commented 1 year ago

Same thing here... Used to work in the past but now anymore.

arvati commented 1 year ago

Gitlab Flow has been changed as notice at https://docs.gitlab.com/ee/api/oauth2.html

the request token should be response_type=code and not token

https://gitlab.com/oauth/authorize?client_id=XXXX&response_type=code&scope=api&state=SSPaTC2Ee7Ias9da&redirect_uri=https%3A%2F%2Fstackedit.io%2Foauth2%2Fcallback

Other changes should apply into stackedit code.