Page 1 of 1

GitHub with SSO

Posted: Wed Aug 28, 2019 6:50 am
by jeremyg
I'm trying to use PowerShell studio with GitHub. Our GitHub Org has SAMLSSO enforced, and PowerShell Studio isn't working to access GitHub. GitHub Desktop works fine (maybe because it uses browser cookies where I'm already auth'ed?)

I can create a GitHub access token to use here, but it doesn't look like there's any way to configure this. Any way to make this happen?

I get the following message:
remote: The `xyz' organization has enabled or enforced SAML SSO. To access
remote: this repository, visit https://github.com/orgs/xyz/sso?authori ... AWGY3FONZQ
remote: and try your request again.
fatal: unable to access 'https://github.com/xyz/my-own-repo.git/': The requested URL returned error: 403

Re: GitHub with SSO

Posted: Wed Aug 28, 2019 7:47 am
by brittneyr
At the moment, I do not believe this process is supported, but I will investigate.
For the time being, can you file a feature request here: https://www.sapien.com/requests please?

Re: GitHub with SSO

Posted: Wed Aug 28, 2019 8:16 am
by mxtrinidad
For now, following the Github instructions on "Creating a personal access token for the command line" link:
https://help.github.com/en/articles/cre ... mmand-line

Make sure to run the command line show in the "Using a token on the command line" section of the post.

Let us know if this clear the issue you're experiencing.

Re: GitHub with SSO

Posted: Wed Aug 28, 2019 12:12 pm
by jeremyg
mxtrinidad wrote: Wed Aug 28, 2019 8:16 am For now, following the Github instructions on "Creating a personal access token for the command line" link:
https://help.github.com/en/articles/cre ... mmand-line

Make sure to run the command line show in the "Using a token on the command line" section of the post.

Let us know if this clear the issue you're experiencing.
I just don't think there's a way to insert that token into the command line that PSP uses. In other words, PSP probably just executing the "Git.exe" command line, to push a file....so that command line would need to be able to use a token.

Re: GitHub with SSO

Posted: Wed Aug 28, 2019 1:24 pm
by mxtrinidad
Not in PSP. I'm sure this need to be included with the repository you cloned.
You may want to reach out in the Git forum to find a straight answer.

In the meantime, this process is not supported yet and we are still investigating. We encourage you to file a "Feature Request"
( https://www.sapien.com/requests ) so we can have it on our list of things to do.

:)

Re: GitHub with SSO

Posted: Thu Aug 29, 2019 7:52 am
by jeremyg
I submitted as a feature request.

Re: GitHub with SSO

Posted: Thu Aug 29, 2019 8:06 am
by brittneyr
We have received both of your feature requests and our development team is looking into it.