Hi Guys,
I am new to Golang. I have just started working on my first GoLang project. A short overview of the requirements which I am implementing in Go.
- A client will send an authorization request to API server. For example, http://api.xyz.com/v1/authorize?apiKey=“key”&redirect=“URL”
- After submitting above request the server redirecting to the login page - http://api.xyz.com/login
- Here user will log in using their credential and after validation, he will get an Access Code in URL query parms.
Please help
=====================
UPDATE
I am able to get the redirect location but how can I maintain a session and do a POST on the login page. Example request body:
{
"username": "joe"
"password": "xxxxxxxx"
}