Comments (3)
To be clear, I know that I can override the Doorkeeper::AccessToken model, and I'm happy to. My question is more related to understanding where the token creation is happening and if I can pass it values from the authorization grant flow.
from doorkeeper.
Hi @jonathansimmons . If I understood your questions correctly you need something like this: #1602
Which is currently impossible without overriding some Doorkeeper internals (I mean no config options which allows to do it).
and ensure that the same account_id is continually passed during the refresh_token process.
For this one you will definitely need to to go deeper into gem classes, RefreshToken strategy & request.
from doorkeeper.
This looks to be exactly what I was hoping for, implemented as a doorkeeper config option.
This PR gives me some insight into what I'd need to do to modify the doorkeeper to have this functionality manually, but I'd prefer not to break form the released gem if possible. I'll move my comments to the PR.
from doorkeeper.
Related Issues (20)
- AuthorizationsController errors don't adhere to the "handle_auth_errors :raise" config HOT 2
- Authentication status pending in Salesforce HOT 3
- uninitialized constant for access_token_model when using custom_access_token_attributes config HOT 3
- Documentation: empty pages HOT 2
- NameError: uninitialized constant error during rake assets:precompile using doorkeeper 5.6.3 HOT 3
- `rails generate doorkeeper:install` fails with `uninitialized constant ActiveRecord` for a non-ActiveRecord project HOT 2
- Option to enforce that clients use PKCE HOT 3
- Support OAuth DPoP HOT 1
- reuse_access_token config should be used when refreshing a token HOT 3
- App is not generating the Oauth2 token using doorkeeper gem HOT 2
- MAJOR ISSUE - matching_token_for not considering custom attributes HOT 1
- Issue with defining application_class in Doorkeeper config causing NoMethodError
- Do not recommend setting access_token_expires_in to nil HOT 1
- It is not possible to revoke refresh token bound to the expired access token HOT 3
- Enhancement: expose `current_resource_owner` to views
- Better support for credential rotation
- Always requiring `redirect_uri` is not compliant to RFC 6749 HOT 2
- NotImplementedError error response must define #exception_class after upgrading to 5.6.7 from 5.6.6 HOT 4
- NoMethodError: undefined method `name_for_response' since v5.6.8 HOT 3
- Doorkeeper::Errors::InvalidRedirectUri Raised When No Redirect URI Set HOT 2
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 doorkeeper.