The POST /api/v0/idps endpoint should inject the correct mapper_url value based on the provider in the payload, in case the mapper_url is empty in the payload.
Motivation
On POST /api/v0/idps a mapper_url field is needed in the payload. The mapper relates to a jsonnet file that needs to be present on the backend. A user can't be expected to know the right value when adding a new identity provider. We should allow idp creation with empty mapper_url and things should "just work".
Description
The
POST /api/v0/idps
endpoint should inject the correctmapper_url
value based on theprovider
in the payload, in case themapper_url
is empty in the payload.Motivation
On
POST /api/v0/idps
a mapper_url field is needed in the payload. The mapper relates to a jsonnet file that needs to be present on the backend. A user can't be expected to know the right value when adding a new identity provider. We should allow idp creation with emptymapper_url
and things should "just work".