When establishing an identity provider using the POST /api/v0/idps endpoint, specifying an empty id field can lead to the newly created identity provider lacking an id field altogether. If multiple identity providers are created this way then it becomes impossible to differentiate between those entities via the GET /api/v0/idps/{id} endpoint.
Propose we should generate the id field within the POST handler for an identity provider if id field is not provided in the payload.
When establishing an identity provider using the
POST /api/v0/idps
endpoint, specifying an emptyid
field can lead to the newly created identity provider lacking anid
field altogether. If multiple identity providers are created this way then it becomes impossible to differentiate between those entities via theGET /api/v0/idps/{id}
endpoint.Propose we should generate the
id
field within thePOST
handler for an identity provider ifid
field is not provided in the payload.