The purposes of this project are:
-
Test whether a 3scale product is integrated with a OIDC IdP.
-
Be illustrative how 3scale API gateway, IdP and client interact.
-
Pull products and aplications list from 3scale Management API
-
Login to OpenID Connect Identity Provider
-
Request to 3scale API gateway
-
This project doesn’t aim to perform complex interaction with 3scale API Gateway. You can use Postman for the purpose.
-
Checking secureness is out of scope. i.e. This application logs information like access tokens, and this doesn’t check TLS certificates.
-
This project is tested on Node.js 14.3.0
-
Target Services
-
-
2.9 On-premises
-
-
RH-SSO
-
A 3scale Product that authentication method is OIDC
-
A 3scale Application under the Product that Redirect URL is
http://localhost:3000/api_provider/oidc_auth/cb
git clone https://github.com/leathersole/3scale-client-proto.git cd 3scale-client-proto npm install npm start
docker pull leathersole/3scale-client-proto:latest docker run --rm -p 3000:3000 leathersole/3scale-client-proto:latest
-
Enter your admin portal domain and access token
-
Click
Get Product list
button -
After Products menu is created, select a product that authentication method is OIDC
-
Click
Use this product
button -
After Applications menu is created, select an application
-
Click
Use this application
button -
To login to OIDC IdP, click
Login
button -
Login to IdP. You’ll be redirected to the the api_provider page
-
Click
Submit
button to call a 3scale API gateway.