Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use github login as the id#1396

Merged
srenatus merged 5 commits into
dexidp:masterfrom
jtnord:useLoginId-dexidp
Feb 5, 2019
Merged

Use github login as the id#1396
srenatus merged 5 commits into
dexidp:masterfrom
jtnord:useLoginId-dexidp

Conversation

@jtnord
Copy link
Copy Markdown
Contributor

@jtnord jtnord commented Feb 1, 2019

Allow an option to use the github user handle rather than an id.

For downstream apps using a github handle is much simpler than working with numbers.

Whilst the number is stable and the handle is not - GitHub does give you a big scary warning if you try and change it that bad things may happen to you, and generally few users ever change it.

This can be enabled with a configuration option useLoginAsId

For downstream apps using a github handle is much simpler than working
with numbers.

WHilst the number is stable and the handle is not - GitHUb does give you
a big scary wanring if you try and change it that bad things may happen
to you, and generally few users ever change it.

This can be enabled with a configuration option `useLoginAsId`
Copy link
Copy Markdown
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM -- thank you! 🎉 Just some nitpicks to get this through CI.

One question for clarification: there's no way to not have a login, right?

Comment thread connector/github/github.go
Comment thread Documentation/connectors/github.md Outdated
@jtnord
Copy link
Copy Markdown
Contributor Author

jtnord commented Feb 4, 2019

One question for clarification: there's no way to not have a login, right?

never say never - but I do not see how you can authenticate against github without an account which requires a login.

Copy link
Copy Markdown
Contributor

@srenatus srenatus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again. This looks good to me. 🎉

Would you mind squashing those commits? 😃

@jtnord
Copy link
Copy Markdown
Contributor Author

jtnord commented Feb 5, 2019

Would you mind squashing those commits?

Yes I would mind; I consider it bad form (for some reasons see why here)

However it is not my repo and if you are saying this will not be merged until I squash it then I will squash it (but this does not seem o be a rule looking at the history)

@srenatus
Copy link
Copy Markdown
Contributor

srenatus commented Feb 5, 2019

We don't have any established, agreed-upon, strict rules; I guess it's a matter of taste mostly. (And a matter for forgetting about cleaning up the history most of the time -- at least when it comes to PRs I approve 😅)

So, fine. I'll just merge this. Thanks again 🎉

@srenatus srenatus merged commit 7bd4071 into dexidp:master Feb 5, 2019
@jtnord
Copy link
Copy Markdown
Contributor Author

jtnord commented Feb 5, 2019

Thank you @srenatus

@jtnord jtnord deleted the useLoginId-dexidp branch February 5, 2019 12:55
mmrath pushed a commit to mmrath/dex that referenced this pull request Sep 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants