-
Notifications
You must be signed in to change notification settings - Fork 8
docs: How to run local auth stack #1384
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,16 @@ | ||||||
| # Run Auth Locally | ||||||
|
|
||||||
| BlueAPI can be secured using OIDC authenticaiton. For development it can be useful to run a containerised version of the OIDC stack, to serve a local instance of BlueAPI. | ||||||
|
|
||||||
| To run the stack: | ||||||
|
|
||||||
| 1. In the root directory run `git submodule update --init --recursive` to initialise the example-services repo | ||||||
| 2. Run `docker compose up -d` to launch an instance of NumTracker, RabbitMQ, Keycloak, Tiled, OPA and a number of IOCs, in detached mode | ||||||
| 3. Run `blueapi -c tests/system_tests/config.yaml serve` to launch BlueAPI configured to use the launched stack. This may take a while, as BlueAPI will attempt to connect to a number of devices via Channel Access | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you run |
||||||
|
|
||||||
| To log in through the BlueAPI CLI: | ||||||
|
|
||||||
| 1. Run `blueapi -c tests/system_tests/config.yaml login` | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think |
||||||
| 2. Follow the login prompt to Keycloak, then log in with the username `admin` and password `admin` | ||||||
| 3. When promped by Keycloak, grant BlueAPI access to the listed privileges | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 4. Run `blueapi controller plans` to check that the log in has succeeded | ||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work from the root of the repo? I think you either need to run from the system_tests directory or pass the file directly.
docker compose -f tests/system_tests/compose.yaml up -d