OAuth2.0 integration with Xamarindifference between HTTP module and OWIN middlewareOWIN OAuth server sample code exampleOWIN OAuth 2.0 Authorization Server Refresh TokenOWIN OAuth 2.0 Authorization ServerOWIN OAuth2 Resource Server authentication using ServiceStackHow do I implement an OAuth2 Authorization_Code Flow in Web Api using OWIN Middleware?securing WCF service with OAuth 2.0OWIN OAuth Authorization Server and individual accountsCortana - OAuth 2 connected serviceOAuth 2.0 - Account Managment for own website

Print the last, middle and first character of your code

What is this little owl-like bird?

Can I run a #12 outlet branch and a #14 light branch off a 30A breaker?

Why weren't bootable game disks ever common on the IBM PC?

Why does wrapping aluminium foil around my food help it keep warm, even though aluminium is a good conductor?

If your plane is out-of-control, why does military training instruct releasing the joystick to neutralize controls?

Using `PlotLegends` with a `ColorFunction`

Is it unbalanced to allow a monk with the Tavern Brawler feat to use improvised weapons as monk weapons?

Does throwing a penny at a train stop the train?

Can the Mage Hand cantrip be used to trip an enemy who is running away?

LED glows slightly during soldering

Is there any reason why MCU changed the Snap to Blip

Does Lufthansa weigh your carry on luggage?

How do native German speakers usually express skepticism (using even) about a premise?

Why is the ladder of the LM always in the dark side of the LM?

Is "I do not want you to go nowhere" a case of "DOUBLE-NEGATIVES" as claimed by Grammarly?

Would a non-attacking Barbarian's rage end the same turn he started it?

Is it possible to create a craft with specific bones, like the bones of a forgotten beast?

Power/Loss diagram

Why are they 'nude photos'?

When I press the space bar it deletes the letters after it

How are mathematicians paid to do research?

Integer Lists of Noah

How to deal with moral/legal subjects in writing?



OAuth2.0 integration with Xamarin


difference between HTTP module and OWIN middlewareOWIN OAuth server sample code exampleOWIN OAuth 2.0 Authorization Server Refresh TokenOWIN OAuth 2.0 Authorization ServerOWIN OAuth2 Resource Server authentication using ServiceStackHow do I implement an OAuth2 Authorization_Code Flow in Web Api using OWIN Middleware?securing WCF service with OAuth 2.0OWIN OAuth Authorization Server and individual accountsCortana - OAuth 2 connected serviceOAuth 2.0 - Account Managment for own website






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















  1. 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


  2. 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".


  3. Also, we can be able to successfully integrate our custom OAuth2.0 server with Cortana bot channel and its working fine.


  4. 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.


  5. We are using "Xamarin.Auth" framework in Xamarin to send the OAuth request.



  6. 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 :)










share|improve this question



















  • 1





    Please add the relevant code to your question.

    – JJJ
    Mar 26 at 1:31

















1















  1. 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


  2. 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".


  3. Also, we can be able to successfully integrate our custom OAuth2.0 server with Cortana bot channel and its working fine.


  4. 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.


  5. We are using "Xamarin.Auth" framework in Xamarin to send the OAuth request.



  6. 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 :)










share|improve this question



















  • 1





    Please add the relevant code to your question.

    – JJJ
    Mar 26 at 1:31













1












1








1








  1. 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


  2. 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".


  3. Also, we can be able to successfully integrate our custom OAuth2.0 server with Cortana bot channel and its working fine.


  4. 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.


  5. We are using "Xamarin.Auth" framework in Xamarin to send the OAuth request.



  6. 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 :)










share|improve this question
















  1. 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


  2. 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".


  3. Also, we can be able to successfully integrate our custom OAuth2.0 server with Cortana bot channel and its working fine.


  4. 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.


  5. We are using "Xamarin.Auth" framework in Xamarin to send the OAuth request.



  6. 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 :)







xamarin oauth-2.0 owin






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 27 at 18:34







Thiruvenkadam Erusan

















asked Mar 26 at 1:19









Thiruvenkadam ErusanThiruvenkadam Erusan

163 bronze badges




163 bronze badges







  • 1





    Please add the relevant code to your question.

    – JJJ
    Mar 26 at 1:31












  • 1





    Please add the relevant code to your question.

    – JJJ
    Mar 26 at 1:31







1




1





Please add the relevant code to your question.

– JJJ
Mar 26 at 1:31





Please add the relevant code to your question.

– JJJ
Mar 26 at 1:31












1 Answer
1






active

oldest

votes


















1














We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/






share|improve this answer






















    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348555%2foauth2-0-integration-with-xamarin%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/






    share|improve this answer



























      1














      We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/






      share|improve this answer

























        1












        1








        1







        We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/






        share|improve this answer













        We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 1 at 14:03









        Thiruvenkadam ErusanThiruvenkadam Erusan

        163 bronze badges




        163 bronze badges


















            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







            Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55348555%2foauth2-0-integration-with-xamarin%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

            은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현