管理使用OpenAM和Spring Boot的用户

huangapple go评论73阅读模式
英文:

Managing of users with OpenAM and springboot

问题

我如何通过 OpenAM 在 Spring Boot 应用中管理用户,以及如何让他们每个人都能登录?我已经使用 "OAuth2" 和客户端进行了绑定,但是在后端应用程序中无法获取到我的演示用户?

英文:

How could i manage users in spring-boot application throw openAM and how could my login with every of them? I have already bind it with "Oauth2" and with client but i can not get my demo-user in backend app?

答案1

得分: 1

实际上,OpenAM并不拥有身份信息,而是通过从配置的用户数据存储中消耗身份数据,在内存中即时构建身份主体(用户/组)。无论您是否使用“嵌入式”用户数据存储,都可以......这只是一种更快部署的选项(用于开发和展示)。
您可以使用SAMLv2或OIDC与OpenAM集成,并通过SAML属性或OIDC声明检索身份信息(用户属性)。
如果您更喜欢OpenAM的专有方法,您还可以在Spring Boot中使用JEE代理进行SSO集成,但这需要进行一些调整。

英文:

Actually OpenAM does not own identity information, but builds identiy subjects (users / groups) on the fly in memory by consuming identity data from configured user data stores. No matter if you use the 'embedded' users data store or not ... that has just been an option for quicker deployment (for development and showcases).
You could wither use SAMLv2 or OIDC to integrate with OpenAM and retrieve the identity information (user attributes) via SAML attributes or via OIDC claims.
If you prefer OpenAM's proprietary way , you could also use JEE Agent for SSO integration in Spring Boot, but this requires some tweaking.

huangapple
  • 本文由 发表于 2020年6月29日 03:20:42
  • 转载请务必保留本文链接:https://go.coder-hub.com/62627213.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定