ves-io-schema-oidc_provider-CustomAPI-GetOIDCMappers

Examples of performing oidc_provider CustomAPI GetOIDCMappers

Usecase:

Get OIDC mappers

Request:

Request using vesctl:

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

where file request.yaml has following contents:

name: google
namespace: documentation

vesctl yaml response:

{}

Request using curl:

curl -X 'GET' -H 'Content-Type: application/json' -H 'X-Volterra-Useragent: v1/pgm=_tmp_go-build038462651_b001_apidocs.test/host=docker-desktop' 'https://acmecorp.console.ves.volterra.io/api/web/custom/namespaces/documentation/oidc_providers/google/mappers?name=google&namespace=documentation'

curl response:

HTTP/1.1 200 OK
Content-Length: 17
Content-Type: application/json
Date: Wed, 12 Jan 2022 14:49:46 GMT
Vary: Accept-Encoding

{
  "email": ""
}