Hello,
I got the task to create an IdP that should communicate with a server which handles request for authentication card. The card is just a piece of plastic with some keys on it. My solution to this would be to use the AuthenticationRequest to get a parameter from the client’s request and then request the user’s details from the other server with this parameter. But I have a problem of what to send in the response. My first attempt was to return an ok response with some user details as JSON, in case of success. I looked at the source code of other IdPs, a lot of them use a redirect response. Therefore I’m a bit confused what to return. Could someone give me an advice?