I am trying to implement Native to Web API flow using Azure AD B2C. Ref https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-reference-oauth-code
I am stuck at figuring our redirect uri. Azure AD supports custom scheme redirect uris only, I guess after the authentication browser tries to open custom redirect uri and OS should be able to handle it and open an app on the machine which gets the authorization code. I am wondering how I can define a URI which works on all platforms(Linux/Windows/Mac).
Redirect URIs should follow this https://docs.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-app-registration#choosing-a-native-application-redirect-uri
The desktop app that is triggering an initial request to Microsoft page is a Python console application.
Any help is appreciated!!