Hi
André,
The private_key_jwt endpoint auth method requires specific STS chains to be in place and so it won't be usable unless you have added the required configuration. So, you don't need to worry about a client using this method when you don't want them to.
However, I think your question is more around how to prevent private_key_jwt method from being advertised in the metadata.
I did some investigation and I have reached the same conclusion as you: it's not possible to set a flag to disable the method and prevent it from appearing. In fact, it looks like the list of methods returned for the @TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED@ macro in the metadata template file is static.
If you want to change this list of advertised endpoint auth methods, you'll need to modify the template file and replace the macro with your own text.
e.g. replace:
"token_endpoint_auth_methods_supported":@TOKEN_ENDPOINT_AUTH_METHODS_SUPPORTED@,
with
"token_endpoint_auth_methods_supported": ["client_secret_post","client_secret_basic","tls_client_auth","self_signed_tls_client_auth"],
The file you need to change is under Template Files. It is: C > oauth20 > metadata.json
I hope this helps.
Jon.
------------------------------
Jon Harry
Consulting IT Security Specialist
IBM
------------------------------
Original Message:
Sent: Fri July 02, 2021 03:41 AM
From: André Leruitte
Subject: Oauth/OIDC : how to disable private_key_jwt authentification method ?
Hello everybody,
We have set up the standard metadata endpoint for our OAuth server : https://id.post.lu/.well-known/openid-configuration
Inside that metadata, we have seen that a private_key_jwt authentication is supported by default :
{"token_endpoint_auth_methods_supported":["private_key_jwt","client_secret_post","client_secret_basic","tls_client_auth","self_signed_tls_client_auth"]}
-=> How can we disable the private_key_jwt method ?
I looked around in the Oauth/OICD policy settings but I am unable to found it anywhere.
Thanks for any help on this
------------------------------
André Leruitte
------------------------------