About NetScaler OIC/OAuth2 token endpoint. Does an...
# citrix-netscaler
k
About NetScaler OIC/OAuth2 token endpoint. Does anyone happen to have a sample of a HTTP POST how to get a WCF Token from NetScaler OAuth IdP? With just basic authentication for starters... and some tips on how to configure the NetScaler AAA for it to work? Also, does NetScaler support
grant_type=password
? Should we use
grant_type=client_credentials
instead? I got a few steps forward by adding the Authorization header (basic), but if I'm trying HTTP POST to `/oauth/idp/`token with the following: Headers • Content-Type =
application/x-www-form-urlencoded
• Authorization =
Basic {base64-encoded creds}
Body • grant_type =
client_credentials
• client_id =
something
• client_secret =
something
I encoded the Basic auth header using UTF-8 (tried Unicode too didn't change anything). Getting a http 400 bad request response. ... I'm getting the following error in the ns.log: "OAUTHIDP: Client credentials ERROR: clientid or secreit or resource is absent"
@Mads Petersen, anyone?
added
resource=something
in to the request body, and got the access token, but still missing a bunch of stuff
Finally found out that NetScaler supports the following grant types: authorization_code password refresh_token client_credentials ... and got some great advice from NetScaler team. Will work on this further, but likely am able to get the F5 replaced 🙂
Apparently the resource attribute in the request body is required with NetScaler, got almost everything sorted out just by adding that.