GithubHelp home page GithubHelp logo

Testing about oauthd HOT 6 CLOSED

oauth-io avatar oauth-io commented on May 29, 2024
Testing

from oauthd.

Comments (6)

bettiolo avatar bettiolo commented on May 29, 2024

To enable server-side Request you need to turn off the cors: true option in the provider config:

{
    "name": "Facebook",
    "desc": "...",
    "url": "https://graph.facebook.com",
    "oauth2": {
        "authorize": "https://www.facebook.com/dialog/oauth",
        "access_token": "/oauth/access_token",
        "request": {
            "cors": false, < - set to false for server-side Request
            "query": {
                "access_token": "{{token}}"
            }
        },
        [...]
    }
}

from oauthd.

bettiolo avatar bettiolo commented on May 29, 2024

I am still wondering how to trigger the OAuth2 Refresh code path?

from oauthd.

bumpmann avatar bumpmann commented on May 29, 2024

Indeed, there is no method to force the cors to turn off.

For the refresh code you mean refresh token ? The endpoint /auth/refresh_token/{provider} is documented at https://oauth.io/docs/api (page bottom)

from oauthd.

bettiolo avatar bettiolo commented on May 29, 2024

You can actually turn off CORS by the settings I specified earlier. I tested it, it was already integrated in your platform.

provider.oauth[1,2].request.cors = false

from oauthd.

bettiolo avatar bettiolo commented on May 29, 2024

@bumpmann you can actually turn off CORS by the settings I specified earlier. I tested it and it is working. It was already integrated in your platform.

<provider>.oauth2.request.cors = false

from oauthd.

bettiolo avatar bettiolo commented on May 29, 2024

The setting <provider>.oauth2.request.cors set to false will make the server do a server-side request. If set to true it will make a client side request.

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.