IdentityServer3 icon indicating copy to clipboard operation
IdentityServer3 copied to clipboard

Adding Prompt to SignInMessage so it can be propagated

Open PhilipSkinner opened this issue 8 years ago • 1 comments

I have a need to be able to propagate the prompt parameter from a client to an upstream IDP. This wasn't possible as it wasn't included in the sign in message.

I've added a new property to the sign in message and set the prompt value in the appropriate place.

PhilipSkinner avatar Sep 28 '17 14:09 PhilipSkinner

I use the acr_values parameter in the redirect to idp notification.

var acrValues = signInMessage.AcrValues.ToDictionary(v => v.Split(':')[0], v => v.Split(':')[1]);
if (acrValues.ContainsKey(Constants.AuthorizeRequest.Prompt)) notification.ProtocolMessage.Prompt = acrValues[Constants.AuthorizeRequest.Prompt];

alaincroisetiere avatar Sep 28 '17 18:09 alaincroisetiere