OpenID autodiscovery URL integration in OpenShift

# Discover the available URLs from your autodiscovery URL
curl https://<idp_host>/.well-known/openid-configuration
CLIENT_SECRET=$(oc get secret -n openshift-config my-id-secret my-id-secret -o jsonpath='{.items[0].data.clientSecret}' | base64 -D)

curl -s -X POST https://<idp_host>/idp/userinfo.openid -H 'content-type: application/x-www-form-urlencoded' -d "client_id=ocp4testawsuswest2QA&client_secret=${CLIENT_SECRET}&access_token=${ACCESS_TOKEN}" | jq

References:

Next