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;
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 :)
xamarin oauth-2.0 owin
add a comment |
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 :)
xamarin oauth-2.0 owin
1
Please add the relevant code to your question.
– JJJ
Mar 26 at 1:31
add a comment |
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 :)
xamarin oauth-2.0 owin
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 :)
xamarin oauth-2.0 owin
xamarin oauth-2.0 owin
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/
add a comment |
We resolved the issue by using this redirect_uri pattern oauth2redirect:/com.company.package/
add a comment |
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/
answered Apr 1 at 14:03
Thiruvenkadam ErusanThiruvenkadam Erusan
163 bronze badges
163 bronze badges
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Please add the relevant code to your question.
– JJJ
Mar 26 at 1:31