I am trying to gain an Authorization Code by sending a GET request to https://<SSG>:8443/auth/oauth/v2/authorize
Am I supposed to send the client_id, scope and response_type encoded in the url or added as headers?
When I try this: https://<SSG>:8443/auth/oauth/v2/authorize?response_type=token&client_id=cd19a0b9-cd2d-4414-9a9e-***********&scope=oob
I do not get a response, any ideas as to what could cause this?
Hi Christopher,
This may help: OAuth Request Scenarios - CA API Management OAuth Toolkit - 4.2 - CA Technologies Documentation
These are the required query parameters:
response_type=code&client_id=a-client_id
If multiple redirects are specified on OAuth manager you will need to specify one here as well.
ie (using the test client id)
https://ssg.ca.com:8443/auth/oauth/v2/authorize?response_type=code&client_id=54f0c455-4d80-421f-82ca-9194df24859d
If you are not seeing a response I would use curl to check the response from the v2/authorize endpoint. May provide more detail what the client you are using.
Regards,
Joe
Thanks Joe,
Turns it out was due to my cluster.hostname being localhost instead of my actual local machine ip. Once I changed it, everything is working perfectly!