I would like to develop automated testing scripts that will mimic the requests coming to my web application. The scripts will call URLs of my web application in a sequence. Before that the script has to authenticate itself in Okta so that the web application allows access.
Is there a way to pass the username and password to a URL of Okta so that the auth code can be obtained and be sent to the application can verify the code?
I plan to use the Auth code flow of login.
You can verify the ID token retrieved from Okta using a JWT verifier. In short, the JWT verifier retrieves the signing keys from Okta, generates a public key based on them and, with it, verifies the signature present in the ID token.