GithubHelp home page GithubHelp logo

Comments (11)

ne0c0de avatar ne0c0de commented on June 11, 2024

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.

Gerst20051 avatar Gerst20051 commented on June 11, 2024

👍

from oauthd.

charlesmudy avatar charlesmudy commented on June 11, 2024

Any update on this?

from oauthd.

rdrg avatar rdrg commented on June 11, 2024

+1.
I guess we have to stay with previous versions of cordova for now.

from oauthd.

fantapop avatar fantapop commented on June 11, 2024

@rdrg which version of cordova is working for you?

from oauthd.

fantapop avatar fantapop commented on June 11, 2024

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.

rdrg avatar rdrg commented on June 11, 2024

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.

fantapop avatar fantapop commented on June 11, 2024

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.

rdrg avatar rdrg commented on June 11, 2024

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.

ne0c0de avatar ne0c0de commented on June 11, 2024

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.

vados-xenon avatar vados-xenon commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.