-
Notifications
You must be signed in to change notification settings - Fork 940
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
docs: add oidc configuration with ory hydra #15126
base: main
Are you sure you want to change the base?
Conversation
ac7d775
to
0751eb8
Compare
doc/howto/oidc_ory.md
Outdated
|
||
Now you can access the LXD UI with any browser and use {abbr}`SSO (single sign-on)` login. Create a user by signing up and complete the login process. | ||
|
||
Users will have no permissions by default. You must set up {ref}`LXD authorization groups <manage-permissions>` to grant access to projects and instances. Map a LXD authorization group to the user. Note, that the user object in LXD will only be created on the first login of that user to LXD. |
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.
Users will have no permissions by default. You must set up {ref}`LXD authorization groups <manage-permissions>` to grant access to projects and instances. Map a LXD authorization group to the user. Note, that the user object in LXD will only be created on the first login of that user to LXD. | |
Users have no default permissions. You must set up {ref}`LXD authorization groups <manage-permissions>` to grant access to projects and instances. Map a LXD authorization group to the user. Note that the user object in LXD is only created on the first login of that user to LXD. |
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.
After following the steps, I opened the UI locally and tried Login with SSO
. I received this error:
invalid_request: The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise malformed. Requested audience 'https://pensive-beaver-sokgdnmdhu.projects.oryapis.com' has not been whitelisted by the OAuth 2.0 Client.
I set https://127.0.0.1:8443/oidc/callback
for the Redirect URIs section. LXD UI version 5.21.3-ui-0.15. Using Firefox with cleared cache.
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.
The ORY interface is misleading here. We have to enter the redirect URL in the input field and then click add. I changed the description a bit to make this more clear. Same with the scope fields. Without clicking "Add", the values in the input field on creation are ignored.
There was another issue: We should not set an audience, which I updated below.
Co-authored-by: Minae Lee <minae.lee@canonical.com> Signed-off-by: David Edler <david.edler@canonical.com>
Done