通过oidc鉴权登录后,只有sso登录的页面,那管理员如何登录?是不是每次只能通过终端后台切换oidc/nacos鉴权模式来登录?After logging in via OIDC authentication, only the SSO login page is available; so, how do administrators log in? Does this mean they have to switch the authentication mode (between OIDC and Nacos) via the terminal backend every time they need to log in? #15553
Replies: 2 comments 3 replies
|
不需要每次切换认证模式;正确做法是把 Authentik 中的管理员用户/组映射为 Nacos 的 OIDC 管理员角色。 OIDC 在 Nacos 中是本地用户名/密码认证的替代模式,不是并行的第二种登录方式。启用 例如,让 Authentik 的 ID Token 包含: {
"groups": ["nacos-admin"]
}然后在 Nacos 配置中显式指定: nacos.plugin.auth.oidc.roles-claim=groups
nacos.plugin.auth.oidc.admin-role=nacos-admin如果你的 Authentik Property/Scope Mapping 输出的是 nacos.plugin.auth.oidc.roles-claim=roles
nacos.plugin.auth.oidc.admin-role=nacos-admin
建议在 Authentik 中保留一个受保护的 emergency/break-glass 管理员用户。当前内置 OIDC 插件没有“SSO + 本地密码管理员同时登录”的混合模式;如果 IdP 不可用,不能依赖同一 Nacos 登录页里的本地账号作为回退。 实现规格明确说明了这一点:OIDC 模式不以 Nacos 本地用户、角色和权限为事实来源, You do not need to switch auth modes each time. OIDC is an alternative to the local Nacos username/password plugin, not a mixed-login mode. Map an Authentik user/group into the ID-token claim selected by |
|
或者这个问题的另一种表述是,通过authentik的oidc鉴权登入后,怎样让登入的新用户无法拥有管理员权限?目前使用的情况是,所有sso登入的用户都可以对空间、skill等权限进行删除这样的管理员权限操作。 |
Uh oh!
There was an error while loading. Please reload this page.
在使用nacos3.2.3,用docker部署,使用authentik的oidc鉴权登录时。登陆页面只有sso登录的案件,管理员无法登录。目前尝试只能通过终端后台切换鉴权模式,暂时恢复账号/密码的登陆方式来登录管理员,但是这样比较麻烦?有没有什么解决方案?
When using Nacos 3.2.3 deployed via Docker with Authentik OIDC authentication, the login page only displays the SSO login option, preventing administrators from logging in. Currently, the only workaround is to switch the authentication mode via the terminal backend to temporarily restore username/password login for administrators, but this is cumbersome. Is there a better solution?
All reactions