GitHub with SSO

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
jeremyg
Posts: 22
Joined: Sun Mar 23, 2008 2:04 pm

GitHub with SSO

Post by jeremyg » Wed Aug 28, 2019 6:50 am

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

User avatar
brittneyr
Site Admin
Posts: 162
Joined: Thu Jun 01, 2017 7:20 am

Re: GitHub with SSO

Post by brittneyr » Wed Aug 28, 2019 7:47 am

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?
Brittney Ryn
SAPIEN Technologies, Inc.

User avatar
mxtrinidad
Site Admin
Posts: 328
Joined: Sun Mar 03, 2013 12:42 pm

Re: GitHub with SSO

Post by mxtrinidad » 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.

User avatar
jeremyg
Posts: 22
Joined: Sun Mar 23, 2008 2:04 pm

Re: GitHub with SSO

Post by jeremyg » Wed Aug 28, 2019 12:12 pm

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.

User avatar
mxtrinidad
Site Admin
Posts: 328
Joined: Sun Mar 03, 2013 12:42 pm

Re: GitHub with SSO

Post by mxtrinidad » Wed Aug 28, 2019 1:24 pm

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.

:)

User avatar
jeremyg
Posts: 22
Joined: Sun Mar 23, 2008 2:04 pm

Re: GitHub with SSO

Post by jeremyg » Thu Aug 29, 2019 7:52 am

I submitted as a feature request.

User avatar
brittneyr
Site Admin
Posts: 162
Joined: Thu Jun 01, 2017 7:20 am

Re: GitHub with SSO

Post by brittneyr » Thu Aug 29, 2019 8:06 am

We have received both of your feature requests and our development team is looking into it.
Brittney Ryn
SAPIEN Technologies, Inc.