Answers for "idToken"

0

idToken

eyJhbGciOiJSUzI1NiIsImtpZCI6IjMyMmE5YmVjOGUwMGFhM2M4MjlkNzk5ZjVjZTlmOGRmNjgxYjQ3M2QifQ.eyJpc3MiOiJodHRwczovL2RleC5mbGV4aWJsZWZseWVyLmV2b2ZvcmdlLm9yZy9kZXgiLCJzdWIiOiIxNzc0IiwiYXVkIjoiZGV4LWs4cy1hdXRoZW50aWNhdG9yIiwiZXhwIjoxNjI4ODYwODc1LCJpYXQiOjE2Mjg4NTcyNzUsImF0X2hhc2giOiJ2Z1FqUUg0aFRCOXVsZDdYbDdfZVpnIiwiZW1haWwiOiJqcHNva29sQGV2b2ZvcmdlLm9yZyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJncm91cHMiOlsiZmxleGlibGVmbHllci9kZXZlbG9wbWVudCIsImZsZXhpYmxlZmx5ZXIvYWRtaW5pc3RyYXRpb24vZGV2b3BzLWFkbWluIl0sIm5hbWUiOiJKdWxpZSBTb2tvbG93c2tpIGpwc29rb2wiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqcHNva29sIiwidWlkIjoiMTc3NCJ9.oFUwNuXIvgmN2VTBO7GVWvEA1_3DRYgp2BEy6m7X5Lxiq2Kkazc-CBqKa6xqoLFRa_ra7N3sNEGBv-fnUfhczsDGVOPPImNRmSKZZ3YOSnO72FETGQhEod4yl_xLxc1iW_mpVEImUjqh0PVW-8tcqgpv1YOqJ3eU4EG0qZ-v1kEylDk9oQzkm_WpTlFDRBuZ0S4V4QFqypnltRZ3JVkL-aBObGDKd2w7LNyeEs2eqfSDv8rfpdPgG2AUcQy-DMjpCaGmL3LGxEg27MPIxuz93sddN2Dzl5TCJnTJp_3KYSH3V6Gzsx0HxXdNaFJCB4JSRL0CSAjWmKGeyxDNeS1KBA
Posted by: Guest on August-13-2021
0

idToken

# The following commmands will setup your kubectl config and allow cluster access.

mkdir -p ${HOME}/.kube/certs/devint/ && cat << EOF > ${HOME}/.kube/certs/devint/idp-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2KEBw/E1Kok3Y8jiXxiHobBkXojFu8fC9HyPUN0j1uiK0
hOyPjMFG7Abaz+pFQCA59FHuebICG4ST3E+7lkwjBHHsaZr5sTINCCyj4gaUrcoq
VNhVMOA9vrTH5GeNsHfpmj9fDbZ2maDFHszZuYPIi9wnWov2wqiJt5A27PKxk5sk
lNEmngL53V/h0gHl6td8VLR4Z+g7LOsteCyYxF6Gz70SY9M8zw6JlSqphyc=
-----END CERTIFICATE-----

EOF

kubectl config set-cluster devint \
    --certificate-authority=${HOME}/.kube/certs/devint/k8s-ca.crt \
    --server=https://10.114.122.222:6443
kubectl config set-credentials devint \
    --auth-provider=oidc \
    --auth-provider-arg="idp-issuer-url=https://dex.flexibleflyer.evoforge.org/dex" \
    --auth-provider-arg="client-id=dex-k8s-authenticator" \
    --auth-provider-arg="client-secret=generatedLongRandomPhrase" \
    --auth-provider-arg="refresh-token=ChlscnRpaXJzNnRsZHN5dDUzYm1uYTVldmk0EhlrcWttdmxpdDVpcml3d2d4aG13eTVha3do" \
    --auth-provider-arg="id-token=eyJhbGciOiJSUzI1NiIsImtpZCI6IjMyMmE5YmVjOGUwMGFhM2M4MjlkNzk5ZjVjZTlmOGRmNjgxYjQ3M2QifQ.eyJpc3MiOiJodHRwczovL2RleC5mbGV4aWJsZWZseWVyLmV2b2ZvcmdlLm9yZy9kZXgiLCJzdWIiOiIxNzc0IiwiYXVkIjoiZGV4LWs4cy1hdXRoZW50aWNhdG9yIiwiZXhwIjoxNjI4ODYwODc1LCJpYXQiOjE2Mjg4NTcyNzUsImF0X2hhc2giOiJ2Z1FqUUg0aFRCOXVsZDdYbDdfZVpnIiwiZW1haWwiOiJqcHNva29sQGV2b2ZvcmdlLm9yZyIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJncm91cHMiOlsiZmxleGlibGVmbHllci9kZXZlbG9wbWVudCIsImZsZXhpYmxlZmx5ZXIvYWRtaW5pc3RyYXRpb24vZGV2b3BzLWFkbWluIl0sIm5hbWUiOiJKdWxpZSBTb2tvbG93c2tpIGpwc29rb2wiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqcHNva29sIiwidWlkIjoiMTc3NCJ9.oFUwNuXIvgmN2VTBO7GVWvEA1_3DRYgp2BEy6m7X5Lxiq2Kkazc-CBqKa6xqoLFRa_ra7N3sNEGBv-fnUfhczsDGVOPPImNRmSKZZ3YOSnO72FETGQhEod4yl_xLxc1iW_mpVEImUjqh0PVW-8tcqgpv1YOqJ3eU4EG0qZ-v1kEylDk9oQzkm_WpTlFDRBuZ0S4V4QFqypnltRZ3JVkL-aBObGDKd2w7LNyeEs2eqfSDv8rfpdPgG2AUcQy-DMjpCaGmL3LGxEg27MPIxuz93sddN2Dzl5TCJnTJp_3KYSH3V6Gzsx0HxXdNaFJCB4JSRL0CSAjWmKGeyxDNeS1KBA" \
    --auth-provider-arg=idp-certificate-authority=${HOME}/.kube/certs/devint/idp-ca.crt
kubectl config set-context devint \
    --cluster=devint --namespace=development \
    --user=devint
kubectl config use-context devint
Posted by: Guest on August-13-2021

Browse Popular Code Answers by Language