Daniel Kiesel
Daniel Kiesel
Do you have an example for decorating the existing Swagger normalizer? I have absolutely no idea, how to do this.
Now, I solved it temporarily by adding the following code to `DocumentationNormalizer::computeDoc()` at line 627 `vendor/api-platform/core/src/Swagger/Serializer/DocumentationNormalizer.php:627` ```php $doc['securityDefinitions'] = [ 'oauth' => [ 'type' => 'oauth2', 'description' => 'OAuth2 client_credentials...
The implementation is ready and the documentation will follow next days.
The `client_credentials` grant type is not the best solution, but swagger ui does not support the `password` grant type, which would be the best :/
Are we using the current swagger UI version? The password flow seems to be implemented in Dec 2016. https://github.com/swagger-api/swagger-ui/pull/2397
Merge request for oauth core changes: https://github.com/api-platform/core/pull/982 Merge request for documentation: #182
This is my config for the OAuth support in swagger: ``` api_platform: oauth: enabled: true clientId: 'ENTER_HERE_YOUR_CLIENT_ID' clientSecret: 'ENTER_HERE_YOUR_CLIENT_SECRET' type: 'oauth2' flow: 'password' tokenUrl: '/oauth/v2/token' authorizationUrl: '/oauth/v2/auth' scopes: [] swagger:...
Why is it not available as npm dependency?
> > @thre-isdd This is not a solution, but here how I managed to make it work. > > > > 1. downloaded 7-zip 32bit at http://www.7-zip.org/a/7z1604.exe > > 2....