Skip to content
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

local OIDC provider for testing #2608

Merged
merged 4 commits into from
Aug 23, 2024
Merged

local OIDC provider for testing #2608

merged 4 commits into from
Aug 23, 2024

Conversation

fabis94
Copy link
Contributor

@fabis94 fabis94 commented Aug 8, 2024

Should work automatically for new local instances, but existing ones (w/ existing DB) will need to run the SQL init file manually before starting up keycloak.

LOCAL SETUP

  1. For existing docker compose deployments, invoke SQL found in setup/db/11-docker_postgres_keycloack_init.sql in your DB client manually (as the speckle user). New docker compose deployments can skip this step.
  2. yarn dev:docker:up
  3. Copy OIDC strategy env vars from .env-example into .env (in server)
  4. When logging in in FE2, use speckle:speckle or register a new keycloak account

Copy link

gitguardian bot commented Aug 8, 2024

️✅ There are no secrets present in this pull request anymore.

If these secrets were true positive and are still valid, we highly recommend you to revoke them.
Once a secret has been leaked into a git repository, you should consider it compromised, even if it was deleted immediately.
Find here more information about risks.


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@iainsproat
Copy link
Contributor

iainsproat commented Aug 8, 2024

@fabis94

@fabis94
Copy link
Contributor Author

fabis94 commented Aug 8, 2024

@iainsproat Alessandro's PR is incomplete, this does the full setup

And I just fixed the 2nd point (altho I think these scripts only run on DB init, so all of us still need to run it manually)

@iainsproat
Copy link
Contributor

@fabis94 - does this PR cover the Identity Provider part of the problem? #2598 (comment)

@fabis94
Copy link
Contributor Author

fabis94 commented Aug 8, 2024

@alemagio I didn't have to do any identity provider stuff, I just created a new realm w/ default clients, adjusted some client settings and created a couple of test users. Then I exported that realm and made sure its imported on keycloak init.

I was able to both register and log into Speckle with that, without having to mess around with any identity providers

@gjedlicska gjedlicska merged commit e2f2a71 into main Aug 23, 2024
22 of 24 checks passed
@gjedlicska gjedlicska deleted the fabians/local-keycloak branch August 23, 2024 11:08
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.

3 participants