Comments (7)
@bshaffer is there any example/cookbook/tips to integrate oauth2-server and doctrine2?
from oauth2-server-php-docs.
Yes! See the following:
config files: https://github.com/bshaffer/oauth2-server-bundle/tree/develop/Resources/config/doctrine
entity files: https://github.com/bshaffer/oauth2-server-bundle/tree/develop/Entity
It's part of the symfony2 bundle, so it's not as agnostic as I would like it, but if you're familiar with Doctrine2 it's a good place to start
from oauth2-server-php-docs.
Thanks @bshaffer indeed, I've written Doctrine Adapter and it wasn't too hard :)
Anyway - is there any actual db struct? I've found at least 3, all different between each other.
from oauth2-server-php-docs.
see "Define your Schema" on the Step-by-Step Walkthrough. Is this what you're looking for?
from oauth2-server-php-docs.
part of...
See ie.: https://github.com/bshaffer/oauth2-server-php/blob/develop/src/OAuth2/Storage/Pdo.php#L518-524 there is jti table, what is for?
In schema above, user has only username, password, first and lastname, but here: https://github.com/bshaffer/oauth2-server-php/blob/develop/src/OAuth2/Storage/Pdo.php#L501-503 email address and scope also.
Which is correct?
from oauth2-server-php-docs.
The differences depend on what grant types you implement, and whether you use OpenID Connect. If you're using the JWTBearer
grant type, and you are supporting jti
(which is optional), you'll want the JTI table. If you're using OpenIDConnect AND you want to support the email_address
claim, you'll want to have those fields as part of your user storage.
I wouldn't worry about it... most of those fields/tables are optional, and it doesn't sound like your implementation will need them.
from oauth2-server-php-docs.
Now I understand, thanks. Is there anywhere described all of those "optional" fields?
from oauth2-server-php-docs.
Related Issues (20)
- Storage/Memory simple question HOT 3
- Refresh Token option HOT 1
- Use use_jwt_access_tokens with Pdo storage HOT 3
- Error response HOT 1
- How do I generate .pem file? HOT 1
- JWT at_hash not generated
- Empty response from CURL request to token controller
- Demo site is not working
- document web site cannot open. HOT 1
- unauthorized_client error when geting access token from the refresh token
- Hide authorization form
- Brute force and SQL injection
- Wrong schema definition in documentation
- Implements UserCredentialsInterface and refresh token when expired
- After 1 renew refresh token disappear
- [Laravel] How can I change token expiration time? HOT 2
- client_id is needed when using an authorization_code HOT 6
- How to revoke an issued access token? HOT 1
- Handling Users? HOT 1
- Add custom assertions/claims in 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 oauth2-server-php-docs.