OAuth token for Management API

I have looked at the below documentation which outlines how to obtain OAuth tokens for management API calls.

https://docs.apigee.com/api-platform/system-administration/management-api-tokens#get-a-new-access-to...

1. what should be the URL used for on-prem version? should it be

https://<mgmt-server-host>/oauth/token or https://<mgmt-server-host>:8080/v1/oauth/token

2. I am using CURL from commandline to execute the request as shown in the example in the link above. Does anything need to be enabled on the on-prem Apigee setup to use this API?

I am seeing an error http 403 "No CSRF token found in headers" error when I make the call with https://<mgmt-server-url>/oauth/token and http 401 unauthorized with https://<mgmt-server>:8080/v1/oauth/token

How do i obtain the token to add it to the request header X-CSRF-Token or am i making the API call incorrectly?

@Sai Saran Vaidyanathan any pointers on this?

0 1 377
1 REPLY 1

@Nagashree B, am able to invoke Management API call for Oauth when SSO is enabled but not without SSO. I am getting another error "404 - No service was found." when invoking using management server hostname. Not sure if there is any additional configuration is required to allow TLS port through LB domain URL and also hostname directly.