Bearer is not really part of oaut2 - how you use the token is up to the resource server.
Supporting access_token as a get/post argument is quite normal though.
I would like to use OAuth2 in a browser / javascript only solution. Therefore I have to make crossdomain (jsonp) servicecalls. But I found that changing headers is not possible when using crossdomain servicecalls. And therefore I think that OAuth2 is not working for me. Or do I miss something?Also I could not get the SampleWcf2Javascript.html working from the DotNetOpenAuth Samples. Should this work?--$.support.cors = true; // force cross-site scripting (as of jQuery 1.5)function serviceCall(operation, accessToken, label) {label.text('fetching...');$.ajax({url: "http://localhost:65170" + encodeURI(operation),headers: {"Authorization": "Bearer " + accessToken},cache: false,success: function (data, textStatus, jqXHR) { label.text(data.toString()); },error: function (jqXHR, textStatus, errorThrown) { label.text(textStatus + ": " + errorThrown); }});};
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/IuXoOmDW5lkJ.
To post to this group, send email to dotnet...@googlegroups.com.
To unsubscribe from this group, send email to dotnetopenid...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
Resource servers MUST support this method.
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
The OAuth 2.0 Authorization Framework: Bearer Token Usage
draft-ietf-oauth-v2-bearer-22
--
I would like to use OAuth2 in a browser / javascript only solution. Therefore I have to make crossdomain (jsonp) servicecalls. But I found that changing headers is not possible when using crossdomain servicecalls. And therefore I think that OAuth2 is not working for me. Or do I miss something?Also I could not get the SampleWcf2Javascript.html working from the DotNetOpenAuth Samples. Should this work?$.support.cors = true; // force cross-site scripting (as of jQuery 1.5)function serviceCall(operation, accessToken, label) {label.text('fetching...');$.ajax({url: "http://localhost:65170" + encodeURI(operation),headers: {"Authorization": "Bearer " + accessToken},cache: false,success: function (data, textStatus, jqXHR) { label.text(data.toString()); },error: function (jqXHR, textStatus, errorThrown) { label.text(textStatus + ": " + errorThrown); }});};
I would like to use OAuth2 in a browser / javascript only solution. Therefore I have to make crossdomain (jsonp) servicecalls. But I found that changing headers is not possible when using crossdomain servicecalls. And therefore I think that OAuth2 is not working for me. Or do I miss something?Also I could not get the SampleWcf2Javascript.html working from the DotNetOpenAuth Samples. Should this work?$.support.cors = true; // force cross-site scripting (as of jQuery 1.5)function serviceCall(operation, accessToken, label) {label.text('fetching...');$.ajax({url: "http://localhost:65170" + encodeURI(operation),headers: {"Authorization": "Bearer " + accessToken},cache: false,success: function (data, textStatus, jqXHR) { label.text(data.toString()); },error: function (jqXHR, textStatus, errorThrown) { label.text(textStatus + ": " + errorThrown); }});};
I would like to use OAuth2 in a browser / javascript only solution. Therefore I have to make crossdomain (jsonp) servicecalls. But I found that changing headers is not possible when using crossdomain servicecalls. And therefore I think that OAuth2 is not working for me. Or do I miss something?Also I could not get the SampleWcf2Javascript.html working from the DotNetOpenAuth Samples. Should this work?$.support.cors = true; // force cross-site scripting (as of jQuery 1.5)function serviceCall(operation, accessToken, label) {label.text('fetching...');$.ajax({url: "http://localhost:65170" + encodeURI(operation),headers: {"Authorization": "Bearer " + accessToken},cache: false,success: function (data, textStatus, jqXHR) { label.text(data.toString()); },error: function (jqXHR, textStatus, errorThrown) { label.text(textStatus + ": " + errorThrown); }});};
--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To view this discussion on the web visit https://groups.google.com/d/msg/dotnetopenid/-/IhJ3a-KBVUgJ.