Hi i am in similar scenery, did you manage to solve the problem?
------------------------------
Cesar Ricardo Guerra Arnaiz
------------------------------
Original Message:
Sent: Thu April 20, 2023 05:04 AM
From: Alexandros Giohalas
Subject: Api Connect Oauth2 with default HTML form
Hello,
I am trying to implement an OAuth provider for my Api.
I am using the default HTML form in order to collect user credentials.
At first I redirect to the form where I insert the user credentials.
(Redirect Url: https://api.us-east-a.apiconnect.ibmappdomain.cloud/natechservices/sandbox/SandBox/oauth2/authorize?client_id=e9351de4f5b95d553d75f07214e53463&response_type=code&scope=Accounts&redirect_uri=https%3A%2F%2Flocalhost%3A44308%2FSnappi%2FToken2&state=ok)

But when I press the login button, instead of calling the authentication url, the browser page redirects to an IP address which cannot be reached.
(Redirect Url: https://172.21.30.13:9443/natechservices/sandbox/SandBox/oauth2/authorize?client_id=e9351de4f5b95d553d75f07214e53463&response_type=code&scope=Accounts&redirect_uri=https%3A%2F%2Flocalhost%3A44308%2FSnappi%2FToken2&state=ok)

I also tried using the Redirect method for authenticating the user, but the original-url provided after the redirection also includes a similar IP address which cannot be reached.
Adding the the x-ibm-authentication-url at the x-ibm-configuration section and the auth-url at the user-security section in the Oauth Yaml had also no effect.
Am I missing something?
Thank you in advance,
------------------------------
Alexandros Giohalas
------------------------------