zielu / GitToolBox

GitToolBox IntelliJ plugin
GNU General Public License v3.0
604 stars 71 forks source link

[Feature] Support GitLab SSO #413

Closed artfiedler closed 1 year ago

artfiedler commented 1 year ago

We switch from gitlab on prem to gitlab cloud recently at the company and now after that was setup I can no longer use this plugin. It seems this plugin does not support gitlab.com SSO login, the regular gitlab.com login page options do not work for company sso we have to goto a specific gitlab.com url to trigger company sso.

If there is a way to do this currently I can't find the configuration option, otherwise it just repeatedly pops up the login popup every minute or so

zielu commented 1 year ago

This must be shortcoming of IDE Git Integration - I do not do any auth directly - just use fetch API provided by the platform and it handles the entire flow.

My advice would be to disable Auto-fetch to prevent login popup spam

zielu commented 1 year ago

@artfiedler could you try checking what happens when regular fetch action is used ? Please follow https://github.com/zielu/GitToolBox/wiki/Manual#login-popup-is-shown-every-few-minutes

artfiedler commented 1 year ago

Finally figured this out, for whatever reason, I had to go into gitlab.com generate a new personal access token with read_repository & write_repository, then go into "manage windows credentials" add a new "windows credentials" > "generic credentials" use "git:https://gitlab.com" as the internet or network address, my sso username, and then use the generated personal access token as the password

zielu commented 1 year ago

Good that is works now