-
Notifications
You must be signed in to change notification settings - Fork 9
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
Defining a User #54
Comments
I would imagine similar issues if there was no repo added and all tests were triggered from docker reg webhooks. Might be worth looking closer at k8s users and the ThirdPartyResource? |
An idea of a user profile might look like this:
then an identities map to search for user profiles upon logging in:
the idea is that a user could have several identities (github, bitbucket, etc). the identities table maps the identity provided by github/bitbucket/auth0/etc to a user profile. This way we can have a user access their github & bitbucket repository as long as they link them to the profile. we could have the ff login endpoints:
For Auth0 and other providers, they can already return a JWT with identities given, so it's just a matter of creating the user profile and identity mapping. Auth flow will be similar to what we have now with a minor addition: [github/bitbucket/etc starts here]
[auth0, etc starts here]
|
Nice. I think my only initial comment is that rather than using |
a few things to note about user and authentication:
|
login auth and user now follow this pattern. it should be easier to add new login now (bitbucket) |
Currently we're just supporting github and any user with proper github creds can create pipelines for repositories they have admin access to. There's barely a user profile.
When we start supporting other SCMs, a user profile might be useful. There might be a case when a user has repositories in both Github and BitBucket and wants to create pipelines for both.
A redesign of how the users are handled may be needed. Right now, if we support multiple SCMs, the user will have to relogin with the OAuth for github/bitbucket/etc to access their repositories. Might not be a good user experience.
The text was updated successfully, but these errors were encountered: