Comments (11)
I just import the generated js file to html (like http://oath.xxx.com/download/latest/oauth.js) and now it gives that error: Missing origin or referer.
When i search it on oauthd project it referrers me to https://github.com/oauth-io/oauthd/blob/master/plugins/server.request/server_request.coffee that page. It looks like referrer related but i'm using this library on mobile app. So there will be no referer. What can i do know?
from oauthd.
👍
from oauthd.
Any update on this?
from oauthd.
+1.
I guess we have to stay with previous versions of cordova for now.
from oauthd.
@rdrg which version of cordova is working for you?
from oauthd.
Hey, I think I have this figured out. On the oauthd server, you need to explicitly add which urls its able to redirect to. If you visit your app page on your local oauthd server. Url should be something like:
http://localhost:6284/apps/eHJDSrxSomeRandomid
There's a text input titled "Domains".
add http://localhost
to that field and hit save.
After this, It works for me.
from oauthd.
Yep, that's right. If you put localhost in the domains, it should work.
Problem is that cordova's newest version (I think it's 4.0) doesn't send
any referrer headers in the request. So even that would not work. Only
solution for me now seems to be dialing back my cordova. Any other
suggestions?
On Thu, Dec 11, 2014 at 4:01 PM, fantapop [email protected] wrote:
Hey, I think I have this figured out. On the oauthd server, you need to
explicitly add which urls its able to redirect to. If you visit your app
page on your local oauthd server. Url should be something like:http://localhost:6284/apps/eHJDSrxSomeRandomid
There's a text input titled "Domains".
add http://localhost to that field and hit save.
After this, It works for me.
—
Reply to this email directly or view it on GitHub
#99 (comment).
from oauthd.
Interesting. I was getting that same error about the origin. Then I added the localhost domain and I stopped getting it. Things are working.
I'm on cordova 4.1.2 and using the oauth.io phonegap plugin version 0.2.4. Maybe they've started sending the origin again. Maybe try upgrading?
from oauthd.
I'll try updating, thanks for the reply!
On Thu, Dec 11, 2014 at 8:50 PM, fantapop [email protected] wrote:
Interesting. I was getting that same error about the origin. Then I added
the localhost domain and I stopped getting it. Things are working.I'm on cordova 4.1.2 and using the oauth.io phonegap plugin version
0.2.4. Maybe they've started sending the origin again. Maybe try upgrading?—
Reply to this email directly or view it on GitHub
#99 (comment).
from oauthd.
Hi all,
Time is going fast, i was resolve the problem by keeping localhost in the domains.
But twitter recently changed their security policies and wants to get exact callback url should be defined in the app settings.
So i defined localhost on it but it's not accepting it. Does anyone know what should be the exact callback url?
from oauthd.
Closing as this is pretty old and it looks like the problem was resolved at least partially, please re-open if this is still an issue (assuming you're still using oauthd
).
from oauthd.
Related Issues (20)
- Oauthd updates HOT 6
- XSS Vulnerability in Firefox HOT 3
- Can't seem to create new profile HOT 29
- Web frontend is broken HOT 1
- You must provide a state when server-side auth HOT 1
- Slack Issues for "incoming webhooks" HOT 8
- Moving to a new server - best method? HOT 1
- Shopify - missing option to specify shop?
- Still supported / active? HOT 1
- Reset admin password? HOT 3
- XSS Vulnerability with upper cased Javascript protocol HOT 2
- vk.com me() function returns 500 HOT 1
- Fix CI
- I am just wondering where does oauthd persist the api keys? HOT 1
- Provider: google - Legacy People API HOT 1
- This is a dead project.. right??? HOT 2
- The service is offline HOT 7
- Update JS SDK
- Investigate LinkedIn v2 migration
- Always return raw values after authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oauthd.