dengc367 opened a new issue, #10749:
URL: https://github.com/apache/gravitino/issues/10749

   ### What would you like to be improved?
   
   for example use spark examples, now the connector runtime jar support 
`grant_type=client_credentials` for client    authentication (from 
https://gravitino.apache.org/docs/1.2.0/security/how-to-authenticate/), but we 
can't use user authentication.
   
   the code snippet now is
   
   ```  
   private static Map<String, String> clientCredentialsRequest(
         String clientId, String clientSecret, List<String> scopes) {
       ImmutableMap.Builder<String, String> formData = ImmutableMap.builder();
       formData.put(GRANT_TYPE, CLIENT_CREDENTIALS);
       if (clientId != null) {
         formData.put(CLIENT_ID, clientId);
       }
       formData.put(CLIENT_SECRET, clientSecret);
       formData.put(SCOPE, toScope(scopes));
   
       return formData.build();
     }
   
   ```
   
   
   
   
   ### How should we improve?
   
   _No response_


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to