Setting up Axway API Platform for Single-Sign-On using Oracle Access Manager.
Env Setup:
- Axway & ASDK clients are installed on the same host
- Axway v753, ASDK 10g (10.1.4.3), ASDK 11g (11.1.2.2.0)
- OAM 11g (11.1.2.3 BP13)
Step A
- OAM_Repository is created & configured as part of the application development
- OAM resource end point where the API calls are made
- OAM resource end point defined in the envConfigurations to pick the path dynamically at startup
- OAM_SSO token validation pre-built adaptors are used for token validation
- This has the definition of the configuration files of OAM – ObAccessClient.xml – ASDK_PATH
- The ASDK_PATH defined in the envConfigurations to pick the path dynamically at startup
- Compatibility mode is defined – we have configured it as 10g
Step B
- ASDK_HOME – this is where the ASDK 11g jar files are referenced at Axway runtime
- The path of the ASDK_HOME is defined in the jvm.xml of Axway
Step C
Generation of ObAccessClient.xml by use of the ASDK tools available as a part of ASDK10g
Work Flow when an API is invoked
- Client calls the API end point
- Axway Policy Flow
- validates the API exist
- validates the header & Authenticate the call against the API key
- Creation of ASDK call for user authentication & Token validation (OAM SSO )
- Axway Policy Flow
- Axway uses the ASDK_PATH, ASDK_RES_NAME from the configuration to read the OAM config details
- In case of successful config lookup the connection would be established
- In case of wrong / invalid / non-existence – ObAccessClient.xml then a runtime error is thrown by Axway and a 403 is generated
- Axway at startup checks if the ASDK11g libraries are available
- In case of an invalid path – Axway will fail to start
- In case of a valid path – it assumes all the necessary files are available
- Axway creates the UserSession and try connecting to OAM Server using ASDK11g libraries
- In case of successful connection to OAM server the ssotoken validation happens
- In case of failed connection to OAM server a 403 error is returned with OAMAGENT error
- In case of invalid libraries connection to OAM server fails with 503 error – NoClassDef error
- In case of incorrect user credential a 401 error is returned with OAMAGENT error
- In case of incorrect sso session token a 403 error is returned with OAMAGENT error
