API Connect

API Connect

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#API Connect
#Applicationintegration
#APIConnect
 View Only
Expand all | Collapse all

Api Connect Oauth2 with default HTML form

  • 1.  Api Connect Oauth2 with default HTML form

    Posted Thu April 20, 2023 08:49 AM
    Edited by Kristen Park Fri April 21, 2023 10:59 AM

    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
    ------------------------------



  • 2.  RE: Api Connect Oauth2 with default HTML form

    Posted Tue April 09, 2024 11:06 PM

    Hi i am in similar scenery, did you manage to solve the problem?



    ------------------------------
    Cesar Ricardo Guerra Arnaiz
    ------------------------------