Replies: 7 comments 5 replies
-
|
You’re missing the startup call in platforms/windows/app.xaml.cs |
Beta Was this translation helpful? Give feedback.
-
|
thanks for the quick answer! I have this in the app.xaml.cs i set a break point and it gets called and returns false , i also tried to call this just before AuthenticateAsync() but it still opens new instances |
Beta Was this translation helpful? Give feedback.
-
|
It’s likely your oauth service is mangling the state parameter then. |
Beta Was this translation helpful? Give feedback.
-
|
it looks like this i also see in the sourcecode that the code parameter which i need to get the refresh token via an api call is not parsed anyway? |
Beta Was this translation helpful? Give feedback.
-
|
i dont get it. Who should pass this parameter? |
Beta Was this translation helpful? Give feedback.
-
|
State is there but Whats with the instance id Parameter ? |
Beta Was this translation helpful? Give feedback.
-
|
Hey, I'm sorry but I'm running into the same issue. I tried the persistance in #111 but it didn't do anything (probably what you're expecting!). If it helps I'm using KeyCloak I've done the check in the platforms > Windows > app.xaml.cs Calling code: In my API I have created auth endpoints to first redirect to KeyCloak and then handle the callback and retrieve the tokens before returning to the app. Is the problem here that I am not returning the state from the web API back to the MAUI app? Sorry for the dumb question here! The end result is that a second instance of the UI starts, rather than going back to the calling window |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
hi
on Maui 9 windows app
i use:
var result = await WinUIEx.WebAuthenticator.AuthenticateAsync(uri, new Uri("myscheme://logged"));
When the callback uri is called by the oauth flow or if i call ist manually in the browser then browser asks if i want to open my app and a new instance of my ma app opens and the original instance is waiting...
what i am doing wrong ?
Beta Was this translation helpful? Give feedback.
All reactions