rukor2 commented on issue #2620: URL: https://github.com/apache/polaris/issues/2620#issuecomment-3312699082
> I can't find any reference to REALM in API specs - https://polaris.apache.org/in-dev/unreleased/polaris-api-specs/ 🤷♂️ > > The [REALM](https://polaris.apache.org/in-dev/unreleased/realm/) documentation says - `a realm is resolved from request headers` but I can't find it in codebase 🤔 > > [@rukor2](https://github.com/rukor2) could you share an example how to use it in API calls? From the examples, I would do something like this to get access token for instance: `export ACCESS_TOKEN=$(curl -X POST \ ${POLARIS_URL}/api/catalog/v1/oauth/tokens \ -H 'Polaris-Realm:<realm name>' \ -d "grant_type=client_credentials&client_id=$ROOT_CLIENT_ID&client_secret=$ROOT_CLIENT_SECRET&scope=PRINCIPAL_ROLE:ALL" \ | jq -r '.access_token')` -- 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]
