stackedit icon indicating copy to clipboard operation
stackedit copied to clipboard

Gitlab Integration Error

Open ocundale opened this issue 2 years ago • 3 comments

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.

ocundale avatar Sep 30 '22 23:09 ocundale

Same here

yumyo avatar Dec 07 '22 11:12 yumyo

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

TheLotusMind avatar Feb 21 '23 10:02 TheLotusMind

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.

arvati avatar May 21 '23 08:05 arvati