IO Runtime Rest API Authentication
How can we structure authentication to securely allow multiple clients to access a REST API (following the documentation at https://developer.adobe.com/runtime/docs/guides/using/creating_rest_apis/)?
Example Swagger file:
{
"basePath": "/v2",
"paths": {
"/ims-validation-endpoint": {
"get": {
"operationId": "your-namespaces/default/my-require-gw-validation-web-action.json",
"security": [
{
"clientids_auth": []
}
]
}
}
},
"securityDefinitions": {
"clientids_auth": {
"type": "oauth2",
"authorizationUrl": "",
"flow": "implicit",
"scopes": {
"write:pets": "modify pets in your account",
"read:pets": "read your pets"
},
"x-client-ids": ["zookeeper", "dogwalker"]
}
}
}Specifically, I have the following questions:
- Where in the Adobe Developer Console (Dashboard) can we define client IDs and scopes defined in the above Swagger.json? Do we need to create a new app for each client to generate a client ID?
- How do we generate the ims_access_token after obtaining the client IDs?
Additionally, I have some clarifications:
- Are "clientids_auth" and "x-client-ids" the same?
- How can I push the Swagger configuration file to the Adobe App Builder?
Thanks