-
Notifications
You must be signed in to change notification settings - Fork 95
Using a Non Production IdP
Follow the instructions below to use a Non-production Identity Provider (IdP) to authenticate the APIs that belong to a specific Organization:
Note
- Use the non-production IdP only for testing purposes.
- The non-production IdP is defined in the
<APK-HOME>/helm-charts/templates/idp/idp-ds/idp-ds-configmap.yaml
file.
Let's add the organization CR for org1
to the namespace to create a new organization.
For more information, see Create an Organization.
After adding the organization named org1
it will be added to the system (Data Plane).
Create an API that is associated to an organization.
Note
Make sure that the Helm charts are installed.
-
Use Postman to get the access token using the Non-prodction IdP.
Use the following details before running the
POST
Generate Auth code token
REST API.- Grant Type -
authorization_code
- Callback URL-
http://httpbin.org
- Auth URL -
https://idp.am.wso2.com:9095/oauth2/authorize
- Access Token URL -
https://idp.am.wso2.com:9095/oauth2/token
- Client ID -
45f1c5c8-a92e-11ed-afa1-0242ac120002
- Client Secret -
4fbd62ec-a92e-11ed-afa1-0242ac120002
Note
Add
idp.am.wso2.com
to your/etc/hosts
file.After you generate the token you will be redirected to non-production IdP login UI.
- Grant Type -
-
Login using the following details.
-
userName -
org1user
-
Password -
org1user
-
Organization -
org1
(The name of the organization that you created before in Step 1).
You will receive the JWT access token.
-
userName -
Use the JWT token that you received in the previous step to invoke Runtime API.