Open thiruvenkadame opened 5 years ago
We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/
We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/
Reversing the redirect_uri gives me "Invalid parameter value for redirect_uri: Missing authority; oauth2redirect:com.companyname.myapp
How did you solve?
OAuth2.0 integration with Xamarin
We build our own "OWIN OAuth 2.0 Authorization Server" using "Microsoft.AspNet.Identity.Owin" and "Microsoft.Owin" framework. Ref: https://docs.microsoft.com/en-us/aspnet/aspnet/overview/owin-and-katana/owin-oauth-20-authorization-server
We can be able to send a request to our custom OAuth2.0 server and get OAuth2.0 access token from web applications by using "DotNetOpenAuth.OAuth2.Client".
Also, we can be able to successfully integrate our custom OAuth2.0 server with Cortana bot channel and its working fine.
But while integrating our custom OAuth2.0 server with Xamarin mobile application we are facing issues related to redirect_uri. We get a response like invalid_grant.
We are using "Xamarin.Auth" framework in Xamarin to send the OAuth request.
Here is the redirect_uri, we used in Web and Mobile a. Xamarin app redirect_uri: com.Demo.Mobile:/oauth2redirect b. Web site redirect_uri: https://demowebsite.azurewebsites.net/ https://user-images.githubusercontent.com/5037741/54964768-10d0ca80-4f44-11e9-9fd9-92673f07f919.png
Thanks in advance for help on this :)