Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
354 views
in Technique[技术] by (71.8m points)

devops - Configuration OpenAm as an intermediate authentication REST-service which uses another service to authenticate

I have a really interesting and difficult task. What I need is to realise next authentication chain.

Imagin, that you have a secured application, lets it's going to be java Spring Boot app, but it's not matter. And the authentication flow is going to be next:

  1. User goes to my Spring Boot App in the first time and see login form.
  2. User types his username and password.
  3. My app takes this data and send REST-request to openAm instance.
  4. OpenAm instance recieves request, takes user credentials and send another authentication request to another identity service via SAML.
  5. If identity service says, that user exists, OpenAm configures JWT-Token and send it back to my app in response.
  6. My app send this JWT back to client, and client sends this jwt-token with every next request to my backend, which validates this token.

My problem is that I am new in SSO and OpenAm particulary. But what I'v already done is I cinfigured two instances of OpenAm. One works as Identity Server, and the second works as Service Provider. But I have no idea what to do next.

How to configure OpenAm instance which works as Service Provider to be able to recieve simple REST request with user credentials and send it to Identity Provider via SAML next? And is it even possible to implement my case?

Thank you!

question from:https://stackoverflow.com/questions/66059390/configuration-openam-as-an-intermediate-authentication-rest-service-which-uses-a

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

This does not work when you use OpenAM REST based authentication, however it would work when you just do SSO from your App with OpenAM ,e.g. via SAML or OIDC or REST SSO call. OpenAM could then act as a 'federation hub'. At OpenAM you can delegate the Authentication via SAML or OIDC to an upstream IdP where the actual authentication happens.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...