Comments (2)
it's easy enough to subclass, here is a currently working solution:
class MyStrategy extends OauthStrategy {
authenticate(req: Request, options) {
// tslint:disable-next-line:no-string-literal
const callbackURL = options.callbackURL || this['_callbackURL']
options.callbackURL = addReturnTo(req, callbackURL)
return super.authenticate(req, options)
}
}
from passport-oauth2.
It would be nice to have a setter for the callbackURL
, much like it has been done here:
jaredhanson/passport-oauth#2
from passport-oauth2.
Related Issues (20)
- Redirect without URL Encode HOT 1
- needs updating HOT 1
- PKCE & token endpoint HOT 6
- `node-oauth` throws intermittent InternalOAuthErrors on fast connections HOT 2
- this library is "insecure" to CSRF by default, security mechanisms confusing to use and enable HOT 8
- Audit vulnerabilities detected in the passportoauth2 project on Tag: v1.6.0 HOT 2
- rate limited issue HOT 1
- Arity check does not work. Therefore Id token will never work. HOT 4
- Custom parameters
- InternalOAuthError: Failed to obtain access token HOT 2
- passport strategy is not invoking while using passport-oauth2 in nestjs HOT 1
- How could I modify the strategy so that it has the ability to vary the content-type beyond application/x-www-form-urlencoded
- How to enable to device workflow in passport-oauth2
- Still use request.connection that deprecated by nodejs since v13.0.0 HOT 1
- Support userInfo endpoint HOT 1
- --pending-deprecation DeprecationWarning: `url.parse()`
- req.connection can be null
- Session key object should be immutable
- Get user profile spills out a giant error with actual code in case response is an error!
- How to get id Token HOT 1
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 passport-oauth2.