To get refresh token, we need to hit okta authorize endpoint which redirects us to login page. Once you login, you will get the code on your redirect uri which will be used to get refresh token.
Mine is not a browser based application but rest api architecture so I generate the token manually by following the above process every time we need a new token. But now I want to automate this process and decided to write an api to do this process. Everything seems fine to me except the login page coming in between which is a blocker to me. Is there another way to get the code or refresh token via api? or is there a way to by-pass the login page?
Any help is appreciated.
Thanks