hanicz opened a new pull request, #1074:
URL: https://github.com/apache/knox/pull/1074

   ## What changes were proposed in this pull request?
   
   New header to specify the client credentials flow and to avoid reading the 
request body multiple times.
   
   ## How was this patch tested?
   
   Unit tests, tested the client credentials flow locally
   
   ```
   curl -ivku admin:admin-password 
https://localhost:8443/gateway/test-client-id/clientid/api/v1/oauth/credentials
   
   curl -ivk -X POST \
     "https://localhost:8443/gateway/tokenbox/knoxtoken/api/v2/token"; \
     -H "Content-Type: application/x-www-form-urlencoded" -H 
"X-Client-Credentials-Flow: true" \
     -d 
"grant_type=client_credentials&client_id=197bac1e-7968-4a73-89e7-cb5f1ee8e590&client_secret=TVRrM1ltRmpNV1V0TnprMk9DMDBZVGN6TFRnNVpUY3RZMkkxWmpGbFpUaGxOVGt3OjpNelppTmpjNE1EWXRaREkzT0MwME1XVm1MV0prWm1VdE5XTTFZV1E0TTJObE5qSmw="
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@knox.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to