Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

Adding Prompt to SignInMessage so it can be propagated #3876

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PhilipSkinner
Copy link

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.

@alaincroisetiere
Copy link

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];

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants