<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y0000A2R1eHSQSOkta Classic EngineOkta Integration NetworkAnswered2020-12-03T01:51:38.000Z2020-12-01T12:56:26.000Z2020-12-03T01:51:38.000Z

LucV.43390 (Customer) asked a question.

C# and wpf, problem with some uri fragments received

Hi,

 

I'm currently creating an C*/WPF standalone application (so no ASP server)

 

my login form contains a WPF Webbrowser to exchange informations with okta by the authorize endpoint.

 

if I use this syntax

var url = $"{OktaDomain}/oauth2/default/v1/authorize?" +

                         $"idp={oktaIdentifier}" +

                         $"&client_id={oktaClientId}" +

                         $"&response_type=id_token%20token" +

                         $"&response_mode=fragment" +

                         $"&scope=openid%20email%20profile" +

                         $"&redirect_uri={oktaRedirectUri}" +

                         $"&state=WM6D&nonce=YsG76jo";

               Web.Navigate(url); // Web is the webbrowser

 

the execution result of a good fragment at the end of the oktaRedirectUri

 

but if I use

               var url = $"{OktaDomain}/oauth2/{oktaIssuer}/v1/authorize?" +

                         $"idp={oktaIdentifier}" +

                         $"&client_id={oktaClientId}" +

                         $"&response_type=id_token%20token" +

                         $"&response_mode=fragment" +

                         $"&scope=openid%20email%20profile" +

                         $"&redirect_uri={oktaRedirectUri}" +

                         $"&state=WM6D&nonce=YsG76jo";

so the resulting oktaRedirectUri contains no fragment.

 

If I use the 2 url in Internet Explorer (version 11), the same result is obtened

If I use the 2 url in FireFox, then the 2 results are as expected (with fragment)

(and between each try, I clear my internet caches)

 

I must use the second syntax exclusively , and I prefer to use the integrated wpf webbrower

can you explain why this happens and how to solve ?

 

Thanks in advance

 

Luc

 

 

 

 

 

 


This question is closed.
Loading
C# and wpf, problem with some uri fragments received