sebardo / oauth
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=5.5.9
- doctrine/doctrine-bundle: ^1.6
- doctrine/doctrine-cache-bundle: ^1.2
- doctrine/orm: ^2.5
- friendsofsymfony/oauth-server-bundle: 1.4.*@dev
- friendsofsymfony/rest-bundle: 1.4.*@dev
- friendsofsymfony/user-bundle: 2.0.*@dev
- incenteev/composer-parameter-handler: ^2.0
- jms/serializer-bundle: dev-master
- nelmio/api-doc-bundle: 2.5.*@dev
- sensio/distribution-bundle: ^5.0
- sensio/framework-extra-bundle: ^3.0.2
- symfony/monolog-bundle: ^3.0.2
- symfony/polyfill-apcu: ^1.0
- symfony/swiftmailer-bundle: ^2.3.10
- symfony/symfony: 2.8.*
Requires (Dev)
- sensio/generator-bundle: ^3.0
- symfony/phpunit-bridge: ^3.0
This package is not auto-updated.
Last update: 2024-12-16 17:06:53 UTC
README
Call to retrieve access_token (client must have grant_type="client_credentials"):
curl 'http://127.0.0.1:8000/oauth/v2/token? grant_type=client_credentials& client_id=6_2p9r8qlmngmc44sc48o8g0gko4c404swsgwo0osgk4gk8o8sgs& client_secret=2vz7pzy1jack0wc4c40sk8kwkosc4wo4ks080wwwsco4sw4w8c& scope=read'
ODYwMjgwNjhkM2EzYjI2MGMyMDgzYTA4Mzc5ZDYyZTAwZWVlNTdhNzlhZmFjYWJkMTkyYTY5YjE3MDZmOGI1Nw
curl 'http://127.0.0.1:8000/api/user/2' -H 'Authorization: Bearer ODYwMjgwNjhkM2EzYjI2MGMyMDgzYTA4Mzc5ZDYyZTAwZWVlNTdhNzlhZmFjYWJkMTkyYTY5YjE3MDZmOGI1Nw'