Giter VIP home page Giter VIP logo

Comments (3)

gary-archer avatar gary-archer commented on July 18, 2024

Hi - just saw this - apologies for the delay replying:

It is often a good idea with OAuth to factor out the plumbing code into reusable classes, as you say. My samples put this type of code into a plumbing folder. In a real company I would share classes, and in some cases use shared libraries, so that the application code remains business focused.

from oauth.websample2.

vibingopal avatar vibingopal commented on July 18, 2024

No Problem. Thank you for the response. One more question - I have seen if the Oauth provider is redirecting the user to the invalid page for any invalid client id/ Redirect URI .
Now Instead of showing the oauth provider page, how can we redirect the user to the custom client page. I have tried with signinredirect (which is async function) using try and catch but OAuth provider page is getting displayed at the end instead of client-side page.

from oauth.websample2.

gary-archer avatar gary-archer commented on July 18, 2024

Until a valid client_id and redirect_uri are supplied, an Authorization Server (AS) will not return an OAuth error response to the caller. Instead it will sit in a rendered page. Once these 2 fields are supplied correctly the AS will return errors in an HTTP response in the error / error_description fields. This type of error will only happen in the early stages of integration, and not in production for real end users.

from oauth.websample2.

Related Issues (2)

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.