Comments (4)
I think this is a good suggestion too. BTW, any code snippet as example of your
idea?
Original comment by [email protected]
on 12 Feb 2011 at 8:56
from oauth2-php.
I agree. Instead of directly accesing the the superglobals
$_SERVER/$_POST/$_GET i would suggesto introduce kind of a "request" object,
that can be injected to the actualy oauth object.
This would be useful for unit testing as well since one could mock this request
object.
Same should be done for the backend tocken handling. Instead of using
inheritence i suggest to introduce a "backend object" implementing an interface
and inject this as well.
So the the actual oauth lib would do nothing but talking its request and the
backend object without knowing their inner logic aka data source.
Original comment by [email protected]
on 14 Sep 2011 at 1:31
from oauth2-php.
[deleted comment]
from oauth2-php.
Some visuals just to get an idea:
http://tinyurl.com/6aeguzd
the request should probably offer an opportunity to esplictly get "crytable"
parameters (like $_POST) for web. (needed for grant access token and grant type
password)
Original comment by [email protected]
on 14 Sep 2011 at 2:12
from oauth2-php.
Related Issues (20)
- Correct check of expires time HOT 4
- Participating project HOT 1
- resource owner HOT 6
- OAUTH2_CLIENT_ID_REGEXP HOT 1
- Not found "OAuth" and access_token on getAccessTokenParams() HOT 3
- HEAD missing oauth.php HOT 2
- typo in OAuth2Client.inc
- Patch for /server/examples/pdo/token.php
- out of band HOT 1
- Update to latest Spec HOT 3
- getAccessTokenParam can get oauth_token from header
- Please add unit tests
- Examples file points to oauth.php which does not exist
- Namespace
- oauth2-php-23.tar.gz
- Do not want my info on via.me HOT 1
- security hole when requesting access token using the authorization method
- Access tokens always grant all the clients scopes
- Some bug fix and code clean up 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 oauth2-php.