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 LICENSE NUMBERS, ACTIVATION 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.
This topic is 4 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
jeremyg
Posts: 23
Last visit: Mon Mar 18, 2024 6:07 am

GitHub with SSO

Post 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
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: GitHub with SSO

Post 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?
Brittney
SAPIEN Technologies, Inc.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: GitHub with SSO

Post 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.
User avatar
jeremyg
Posts: 23
Last visit: Mon Mar 18, 2024 6:07 am

Re: GitHub with SSO

Post 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.
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: GitHub with SSO

Post 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.

:)
User avatar
jeremyg
Posts: 23
Last visit: Mon Mar 18, 2024 6:07 am

Re: GitHub with SSO

Post by jeremyg »

I submitted as a feature request.
User avatar
brittneyr
Site Admin
Posts: 1654
Last visit: Wed Mar 27, 2024 1:54 pm
Answers: 39
Been upvoted: 30 times

Re: GitHub with SSO

Post by brittneyr »

We have received both of your feature requests and our development team is looking into it.
Brittney
SAPIEN Technologies, Inc.
This topic is 4 years and 6 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.