stackedit
stackedit copied to clipboard
Gitlab Integration Error
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 (client_id 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.
Same here
Same thing here... Used to work in the past but now anymore.
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.