使用 Jhipster 和 okta 为用户添加自定义字段
Adding custom fields on user with Jhipster and okta
我正在尝试在 Jhipster 和 Okta 的用户上添加自定义字段。
问题是我没有在 UserService
中的所有其他字段中得到它:
public UserDTO getUserFromAuthentication(OAuth2Authentication authentication) {
...
Map<String, Object> details = (Map<String, Object>) authentication.getUserAuthentication().getDetails();
...
}
在 Okta 中,我在常规 User
和 <myapp> User
上都配置了它们,但是当我预览映射时,我看到 Okta to <myapp>
映射工作正常,但是 <myapp> to Okta
离开我的领域 null
.
非常感谢任何帮助。
发现问题 - 在将您想要的字段添加到配置文件后,您还必须将它们添加到声明中:API
-> Authorization Servers
-> edit
-> Claims
.
我正在尝试在 Jhipster 和 Okta 的用户上添加自定义字段。
问题是我没有在 UserService
中的所有其他字段中得到它:
public UserDTO getUserFromAuthentication(OAuth2Authentication authentication) {
...
Map<String, Object> details = (Map<String, Object>) authentication.getUserAuthentication().getDetails();
...
}
在 Okta 中,我在常规 User
和 <myapp> User
上都配置了它们,但是当我预览映射时,我看到 Okta to <myapp>
映射工作正常,但是 <myapp> to Okta
离开我的领域 null
.
非常感谢任何帮助。
发现问题 - 在将您想要的字段添加到配置文件后,您还必须将它们添加到声明中:API
-> Authorization Servers
-> edit
-> Claims
.