Creating a web application API alternative
About this task
Application developers can use the API operations to create a web application. Use the access token generated through the worker app.
Steps
-
To create a web application, use the following
POST
operation:POST https://api.pingone.com/v1/environments/{{envId}}/applications
See POST: Step 1: Create an OpenID Connect (OIDC) application in the API reference for details.
-
To be able to grant access to the web app, to at least one scope in the system, you first need to get the resource and scope IDs. Use the following
GET
operation:GET https://api.pingone.com/v1/environments/{{envId}}/resources?expand=scopes
See GET: Step 3: Get the list of resources and GET: Step 4: Get all scopes in the API reference for details.
-
To create grants, use the following
POST
operation:POST https://api.pingone.com/v1/environments/{{envId}}/applications/{{webAppId}}/grants
See POST: Step 5: Create the application’s resource access grant in the API reference for details.