ves-io-schema-oidc_provider-CustomAPI-RegisterClaimToEmailMapper

Examples of performing oidc_provider CustomAPI RegisterClaimToEmailMapper

Usecase:

Register claim to email mapper

Request:

Request using vesctl:

vesctl request rpc oidc_provider.CustomAPI.RegisterClaimToEmailMapper -i request.yaml --uri /public/custom/namespaces/documentation/oidc_providers/google/mappers --http-method POST

where file request.yaml has following contents:

claim: upn
name: google
namespace: documentation

vesctl yaml response:

{}

Request using curl:

curl -X 'POST' -d '{"namespace":"documentation","name":"google","claim":"upn"}' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build970361017_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/custom/namespaces/documentation/oidc_providers/google/mappers'

curl response:

HTTP/1.1 200 OK
Content-Length: 4
Content-Type: application/json
Date: Wed, 25 Aug 2021 09:03:36 GMT
Vary: Accept-Encoding

{

}