Comments (3)
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.
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.
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)
- Template HOT 3
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 oauth.websample2.