Fortinet white logo
Fortinet white logo

REST API Solution Guide

OIDC Keys (/oauth/.well-known/keys/)

OIDC Keys (/oauth/.well-known/keys/)

URL: https://[server_name]/api/v1/oauth/.well-known/keys/

This endpoint provides details of the key used to sign the JWTs generated for ID tokens, so that clients are able to verify them.

Example

curl -k -v -X GET https://[FAC_IP]/api/v1/oauth/.well-known/keys/

Response:
{
    "keys": [
        {
        "alg": "RS256",
        "use": "sig",
        "kid": "eA9TlCNa6qj994GyH4TkQgQtQ_POCEsrSk9FLQtoGNU",
        "kty": "RSA",
        "n": "u_j5r-YE1h2yYWjAxfZaVZ82kLJtrRmRiSgZIkTAYLuYoW60eOMrPmEIyo4EaoMTlT1sEqiS8VSa6hqOzsvw8esQ_SWtYmhT4TplgHFnF0dR-xitSVYY113ixNpPWiOxyANT2ArwEvnHAYHXzMXIiirSRfr5WmM28huuKvoIOeDeLt9ezARsCpwbQPMlq-p896QWba_HAOhWL7YISwxtUf2VmDc5pKjqfYPuSw0LOIxvvINwEesIkbilJqx4QhEwnG3g0p2gsm7dx7zwUjuJyNjzLElrB5ZlAfxamkEp9qHpOeYIOiTdLmD8wr8T7r-QGpdNYeJsLA9ycIO-bSGxk9n6eNXFlF5FoAbiTNJzvrIPbfCulGSMfE3PSO1Xro1YB_QTKmjPlPyt2Ae7gBBN2yTGqbY0SjUk81Ca-DqorbjgOXYXMkxfjCg22qv5Yq_CgX7WZM6CV4IE_B6R0wEJQLk9ccWblOpZ3eFafR7CbtXOjJuNQzBaMwTwtsbcQlOxW_kPuYj0gNgLvmC02C-VE1VTi1ttnXsMwgO3qHgTj2mU11taFKjvf88__xIV4dt87AMiVJxRKVfH3JzknRlfW5VINYqpOut8JctPIRPCLEhhEGuRaIzz-FbTPQpJY3ULrJ6D_v7pd5H3kF_89a-VMiodH_e52W6Wd4FnIE_IiVM",
        "e": "AQAB"
        }
    ]
}

OIDC Keys (/oauth/.well-known/keys/)

OIDC Keys (/oauth/.well-known/keys/)

URL: https://[server_name]/api/v1/oauth/.well-known/keys/

This endpoint provides details of the key used to sign the JWTs generated for ID tokens, so that clients are able to verify them.

Example

curl -k -v -X GET https://[FAC_IP]/api/v1/oauth/.well-known/keys/

Response:
{
    "keys": [
        {
        "alg": "RS256",
        "use": "sig",
        "kid": "eA9TlCNa6qj994GyH4TkQgQtQ_POCEsrSk9FLQtoGNU",
        "kty": "RSA",
        "n": "u_j5r-YE1h2yYWjAxfZaVZ82kLJtrRmRiSgZIkTAYLuYoW60eOMrPmEIyo4EaoMTlT1sEqiS8VSa6hqOzsvw8esQ_SWtYmhT4TplgHFnF0dR-xitSVYY113ixNpPWiOxyANT2ArwEvnHAYHXzMXIiirSRfr5WmM28huuKvoIOeDeLt9ezARsCpwbQPMlq-p896QWba_HAOhWL7YISwxtUf2VmDc5pKjqfYPuSw0LOIxvvINwEesIkbilJqx4QhEwnG3g0p2gsm7dx7zwUjuJyNjzLElrB5ZlAfxamkEp9qHpOeYIOiTdLmD8wr8T7r-QGpdNYeJsLA9ycIO-bSGxk9n6eNXFlF5FoAbiTNJzvrIPbfCulGSMfE3PSO1Xro1YB_QTKmjPlPyt2Ae7gBBN2yTGqbY0SjUk81Ca-DqorbjgOXYXMkxfjCg22qv5Yq_CgX7WZM6CV4IE_B6R0wEJQLk9ccWblOpZ3eFafR7CbtXOjJuNQzBaMwTwtsbcQlOxW_kPuYj0gNgLvmC02C-VE1VTi1ttnXsMwgO3qHgTj2mU11taFKjvf88__xIV4dt87AMiVJxRKVfH3JzknRlfW5VINYqpOut8JctPIRPCLEhhEGuRaIzz-FbTPQpJY3ULrJ6D_v7pd5H3kF_89a-VMiodH_e52W6Wd4FnIE_IiVM",
        "e": "AQAB"
        }
    ]
}