Comments (12)
Why doesn't https://github.com/FriendsOfSymfony/FOSOAuthServerBundle/tree/feature/client-on-token merged to the master?
from fosoauthserverbundle.
Done :)
from fosoauthserverbundle.
Can I send a pull request?
from fosoauthserverbundle.
@pierre Why don't you "just" do this :
$token = $securityContext->getToken()->getToken();
$accessToken = $accessTokenManager->findTokenBy(array('token' => $token));
$client = $accessToken->getClient();
from fosoauthserverbundle.
It does 1 additional request in the database:
$accessToken = $accessTokenManager->findTokenBy(array('token' => $token));
Is useless if we set the client in FOS\OAuthServerBundle\Security\Authentication\Token\OAuthToken
from fosoauthserverbundle.
Yes, why not. I think it can be useful.
from fosoauthserverbundle.
Actually, we should store the access token (doctrine document/entity) as an object in the oauth security token.
Currently, it's a string.
from fosoauthserverbundle.
I agree, storing this info on the token entity sounds more efficient.
cc: @willdurand what do you think?
I can work on PR if you think its relevant
from fosoauthserverbundle.
There's a branch in the bundle, there's #188, why hasn't this been merged yet? /cc @GuilhemN
from fosoauthserverbundle.
Sorry I don't have the time to review this bundle's PRs anymore... But I can add you as collaborator if you're willing to maintain this bundle.
from fosoauthserverbundle.
I'll do my best, let's do it. 👍
from fosoauthserverbundle.
Thinking about this, we shouldn't set the client, instead we should inject the whole token instead of only the string. Will work on this for 2.0.
from fosoauthserverbundle.
Related Issues (20)
- Implicit flow enabled by default for every client
- Installation fails during configuration (Symfony 4.4 - flex) HOT 1
- Question about fos_auth_server.yaml
- Security fix for FriendsOfSymfony/oauth2-php HOT 2
- Time for a new release ? HOT 8
- PHP8 support HOT 2
- How to get OAuthToken instead of UserPasswordToken?
- How to add a custom Authentication Provider
- 2.0 timeline and next tagged release? HOT 1
- Suggested way to handle deactivated users
- With symfony 4.4 I'm getting Argument 1 passed to FOS\OAuthServerBundle\Entity\ClientManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager HOT 1
- OAuthToken with null user is not authenticated anymore since symfony 5.4 HOT 5
- PHP 8 Deprecated on getAlias Method HOT 1
- Symfony 6.0 compatibility HOT 6
- PKCE flow support?
- Errors found when auto_mapping is disabled and I didn't heed the instructions about mappings
- SF4 mongodb not finding odm HOT 2
- Officially deprecate the package HOT 5
- Getting attribute 'fieldName': The attribute 'fieldName' is not all !! owed. HOT 3
- PHP 81 Compatibility 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 fosoauthserverbundle.