Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INSERT INTO `client` VALUES (NULL, '3bcbxd9e24g0gk4swg0kwgcwg4o8k8g4g888kwc44gcc0gwwk4', 'a:0:{}', '4ok2x70rlfokc8g0wws8c8kwcokw80k44sg48goc0ok4w0so0k', 'a:1:{i:0;s:8:"password";}');
- http POST http://172.22.0.5/oauth/v2/token \
- grant_type=password \
- client_id=1_3bcbxd9e24g0gk4swg0kwgcwg4o8k8g4g888kwc44gcc0gwwk4 \
- client_secret=4ok2x70rlfokc8g0wws8c8kwcokw80k44sg48goc0ok4w0so0k \
- username=oboforty \
- password=genvale282
- $clientManager = $this->getContainer()->get('fos_oauth_server.client_manager.default');
- $client = $clientManager->createClient();
- $client->setRedirectUris(array('http://www.example.com'));
- $client->setAllowedGrantTypes(array('token', 'authorization_code'));
- $clientManager->updateClient($client);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement