Search code examples
c#.netuwpoauth-2.0oauth

I Want to open a browser within an UWP app (for oAuth2 grant)


I'm developing an app which requires oAuth2.0 code authorization. So, I want to open a browser and get the Access Token by logging into their website. But I want to do that within my app, without opening any external browser. Can Anyone Help me ??

The Documentation for the oAuth is Found Here.


Solution

  • I Want to open a browser within an UWP app (for oAuth2 grant)

    UWP platform provide WebAuthenticationBroker class to get the Access Token by logging into their website within internal webview. And here is the detail steps how to use WebAuthenticationBroker. For more info please refer to official WebAuthenticationBroker code sample.