Replies: 6 comments 14 replies
-
I tried to find issues related to this (might be more!): |
Beta Was this translation helpful? Give feedback.
-
I use Application slugs are the slug for the application you configured on the.. application. The field is literally called slug. If you wish to find the correct url to use, go to the provider registered for the application. All valid uri's are listed on the overview page of the provider. Including logout url. There is no need to try to construct the url's manually based on a template you find in the docs. The provider overview simply lists whatever url's are valid for that provider. |
Beta Was this translation helpful? Give feedback.
-
I'm not getting the whole discussion from the linked issue. Is it, or is it not possible to do the following?
|
Beta Was this translation helpful? Give feedback.
-
Another example for the doc issues: |
Beta Was this translation helpful? Give feedback.
-
There is also a lot of confusion regarding service-to-serivce / m2m token grabbing via client_credentials grant on API endpoint application/o/token. e.g. #5860 |
Beta Was this translation helpful? Give feedback.
-
Authentik and Nextcloud OpenID/OAuth2Those who want to use Nextcloud with Authentik beware, it requires a bit of more configuration than presented under https://docs.goauthentik.io/integrations/services/nextcloud/ Configuration in AuthentikYou need a Provider, a Application, the average OpenID config, and so on. The For example, I have added a nc_admin ## Extract all groups the user is a member of
groups = [group.name for group in user.ak_groups.all()]
# Nextcloud admins must be members of a group called "admin".
# This is static and cannot be changed.
# We append a fictional "admin" group to the user's groups if they are an admin in authentik.
# This group would only be visible in Nextcloud and does not exist in authentik.
if user.is_superuser and "admin" not in groups or "nc_admin" in groups:
if "nc_admin" in groups:
groups.remove("nc_admin")
groups.append("admin")
return {
"name": request.user.name,
"groups": groups,
# To set a quota set the "nextcloud_quota" property in the user's attributes
"quota": user.group_attributes().get("nextcloud_quota", None),
# To connect an already existing user, set the "nextcloud_user_id" property in the
# user's attributes to the username of the corresponding user on Nextcloud.
"user_id": user.attributes.get("nextcloud_user_id", str(user.uuid)),
} Security Note!Also be aware that by default new users in Authentik have access to all apps without a binding policy (e.g. to a group). Admin OpenID Plugin Config in NextcloudBasically, you follow all the steps etc, then you go to https://nextcloud.domain/settings/admin/user_oidc Make sure you:
You can do it like shown in the screenshot. Beware that otherwise another group "admin" with a different hash in the Nextcloud Database, causing duplicates and confusion, as your user would not be in the right admin group. Security Note!It is possible to whitelist certain groups, but this will not add new groups to Nextcloud. To make that happen fill the whitelist box below Authentik Login page only using the OpenID Nextcloud pluginFinally, if you only want Authentik serving a login page, go into to the Nextcloud app directory (if you use a container exec into it) and run (as user www-data) See also here |
Beta Was this translation helpful? Give feedback.
-
Dear fellows,
I had trouble finding the right logout route that is needed for outline as parameter
OIDC_LOGOUT_URI
neither proposedproxy-auth-domain.foo.tld/akprox/sign_out
(see #1113 (comment)) norEnd Session | /application/o/<application slug>/end-session/
works (see https://docs.goauthentik.io/docs/providers/oauth2/). #2023 (comment) mentions the route/outpost.goauthentik.io/sign_out
. All routes return 404 not found.What works (for outline!) is
OIDC_LOGOUT_URI=https://authentik.domain.tld/flows/-/default/invalidation/
but I think it invalidates the whole session on all apps. Not sure about this tho, it's not documented. There is discussion about that in #2023, however the outcome remains unclear.Furthermore I tried to find out what "
application slugs
" are, but the documentation describes nothing except the fact that they exist!My question and central point: Can we somehow clarify the terms and URLs? People should not waste time on that, especially because it is so essential.
I understand it is very hard to keep up the good work in the Software Dev Life Cycle and it is not easy to document properly, when you are with your mind within the inner-circle of the project. For us users, whether it is free or premium, we need the clarification on that.
I think we all are eager to help. Thank you in advance, lets discuss that!
Beta Was this translation helpful? Give feedback.
All reactions