Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StepUp Auth, Claim and FrontChannelExtraParameters #427

Open
saltzman007 opened this issue Apr 11, 2024 · 0 comments
Open

StepUp Auth, Claim and FrontChannelExtraParameters #427

saltzman007 opened this issue Apr 11, 2024 · 0 comments

Comments

@saltzman007
Copy link

I just wrote a StepUp Auth for different Levels of Auth (LOA)

        private async void Login(string LOA)
        {
            LoginResult loginResult;

            try
            {
                LoginRequest loginRequest = new  LoginRequest();
                loginRequest.FrontChannelExtraParameters.Add("response_mode", "query");
                loginRequest.FrontChannelExtraParameters.Add("nonce", "exg16fxdjcu");

                string claim = "{\"id_token\":{\"acr\":{\"essential\":true,\"values\":[\"***LOA***\"]}}}";
                claim = claim.Replace("***LOA***", LOA);
                loginRequest.FrontChannelExtraParameters.Add("claims",claim);

                loginResult = await _oidcClient.LoginAsync(loginRequest);

Is it a good idea to rely on the undocumented FrontChannelExtraParameters or is there another official way to pass the claim params?
Are these FrontChannelExtraParameters intended stay in the lib for a longer time?

Gr8 lib, thx!

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

No branches or pull requests

1 participant