Skip to content

github urls with access token are not supported #21

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
godfryd opened this issue Dec 28, 2019 · 7 comments · Fixed by #73
Closed

github urls with access token are not supported #21

godfryd opened this issue Dec 28, 2019 · 7 comments · Fixed by #73

Comments

@godfryd
Copy link

godfryd commented Dec 28, 2019

Such urls has this form: https://<access-token>@github.com/....
For example:
https://fiuahjrehfakhdhauwe@github.com/nephila/giturlparse

@yakky yakky self-assigned this Dec 28, 2019
@yakky
Copy link
Member

yakky commented Dec 28, 2019

@godfryd thanks for reporting
I need to go back to work on #19 where we should be able to easily add this

@yakky yakky added this to the 1.0 milestone Nov 15, 2020
@protoroto
Copy link
Member

@godfryd Could you try on latest version? I'm able to parse that url correctly now

@yakky yakky removed their assignment Aug 24, 2023
@godfryd
Copy link
Author

godfryd commented Aug 26, 2023

Hello,

I tried giturparse 0.11.1 on the URL: https://fiuahjrehfakhdhauwe@github.com/nephila/giturlparse

I run:

p=giturlparse.parse('https://fiuahjrehfakhdhauwe@github.com/nephila/giturlparse')
print(p.data)

Parsed data does not seem well:

{'port': '',
 'path_raw': '',
 'groups_path': '',
 'owner': 'nephila',
 '_user': 'git',
 'protocols': ['https'],
 'protocol': 'https',
 'domain': 'fiuahjrehfakhdhauwe@github.com',
 'pathname': '/nephila/giturlparse',
 'repo': 'giturlparse',
 'path': '',
 'branch': '',
 'url': 'https://fiuahjrehfakhdhauwe@github.com/nephila/giturlparse',
 'platform': 'gitlab'}

I would expect that platform is github not gitlab,
domain seems to be incorrect,
access token could be stored in user field.

@protoroto
Copy link
Member

@godfryd You're right: I guess access tokens are not supported yet. I'll look into it

@protoroto
Copy link
Member

protoroto commented Aug 31, 2023

@godfryd I'm digging into this: it looks like urls with access token like the one you mentioned https://<access_token>@github.com/nephila/giturlparse are not supported by github/gitlab . I'm seeing that urls like https://oauth2:<access_token>@github.com/nephila/giturlparse are instead valid and supported (both for gitlab and github), so I'll work on this feature.

@godfryd
Copy link
Author

godfryd commented Sep 1, 2023 via email

@protoroto
Copy link
Member

@godfryd Hey! We've just release 0.12.0 that should support those urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants