-
Notifications
You must be signed in to change notification settings - Fork 147
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
Set up Keycloak and integrate with API #632
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…b.com:amazeeio/lagoon into user-model
MariaDB doesn't care which way you do it, so let's just do it with the parentheses in case we ever need parameters later. > In current releases of MariaDB, CALL p() and CALL p are equivalent. Ref: https://mariadb.com/kb/en/library/call/
To accept user IDs instead of SSH keys
This loops through all orphaned SSH keys (SSH keys without a related user in user_ssh_key) and: 1. Creates a user 2. Creates a row in the user_ssh_key key to map the new user to the SSH key 3. Migrates all existing customer permissions to customer_user 4. Migrates all existing project permissions to project_user
- Move SSH key DAO functions to user.js, refactor - Add new user DAO functions - Rewrite stored procedures to use Knex - Update old GraphQL queries - Add new GraphQL queries - Add userBySshKeys query
…en have a lagoon uid
This reverts commit ef88323.
If changing the email in the updateUser mutation
- Don't perform any Keycloak operations if the email hasn't changed - Log the username instead of the id
3 tasks
Merged into #675 to collaborate better with rest of team. Will continue from there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Merging blocked on #575 and #627 because this contains commits from those PRs.To use, (re)build containers:
TODO:
keycloak-admin-client
to https://github.com/amazeeio/keycloak-admin-clientkeycloak-admin-client
dependency to APIkeycloak-admin
instead of using our forkaddProject
mutation creates Keycloak groupupdateProject
with a newname
renames Keycloak groupupdateProject
with a newcustomer
deletes Keycloak users with customer-only project access from the Keycloak groupupdateProject
with a newcustomer
adds Keycloak users with customer-only project access to the Keycloak groupdeleteProject
deletes Keycloak groupdeleteAllProjects
deletes all corresponding Keycloak groupsaddUser
mutation creates Keycloak useraddUserToProject
adds a Keycloak user to a groupremoveUserFromProject
deletes a Keycloak user from a groupremoveAllUsersFromAllProjects
deletes all Keycloak users from all groupsaddUserToCustomer
adds a Keycloak user to the groups corresponding to the customer's projectsremoveUserFromCustomer
deletes a Keycloak user from the groups corresponding to the customer's projectsremoveAllUsersFromAllCustomers
deletes all Keycloak users from the groups corresponding to all customers' projectsuser.email
column uniqueapi-data.gql
to also specify emailrefresh_token
)Identity Provider Links
in Keycloak for thegitlab
identity providerMaybe:
Fix broken tests inUsing thekeycloak-admin-client
, open PRkeycloak-admin
module insteadChange the config path back to the default$HOME/.keycloak/kcadm.config
(see 3080d6c)Nope:
Don't need to do this because deleteCustomer only deletes customers without any projects assigned to themdeleteCustomer
deletes all Keycloak groups corresponding to customer projectsCloses #620
Get a 60 second admin token
GET users
Ref: https://stackoverflow.com/questions/48507224/cant-access-keycloak-rest-api-methods-404