oauth2 icon indicating copy to clipboard operation
oauth2 copied to clipboard

Logout redirection problem on Windows

Open jayantahexagon opened this issue 1 year ago • 0 comments

I have a Flutter app that utilizes Azure B2C authentication, employing OAUTH2 integration. While the login process is successful, I am encountering issues with the logout functionality. My current approach involves calling the logout endpoint and clearing the access token. The logout process works on iOS, redirecting back to the app, but on Windows, the redirection is not functioning properly. I observed that using a redirect URI with "https://" works, but when using a custom scheme like "myapp://auth," the redirection does not occur as expected.

Example Logout URL : https://{tenant}.b2clogin.com/{tenant}.onmicrosoft.com/{policy}/oauth2/v2.0/logout?post_logout_redirect_uri=myapp://auth

Any idea how it can be solved ?

jayantahexagon avatar Jan 18 '24 10:01 jayantahexagon