ADFS accepts a resource URL as a part of authentication request flow, it is used to identify your Web API.
To add resource URL on the request, use the OIDC extra auth code options config :
config:
oidc:
extra:
authCodeOpts:
resource: xxxxxx
If you require the resource URL to be included in Kubeconfig (ex: for refresh tokens), update the Kubeconfig configuration part:
config:
web:
kubeconfig:
extraOpts:
resource: xxxxxx
This will automatically add the extra options to the generated Kubeconfig and kubectl command:
- name: admin@example.com
user:
auth-provider:
config:
resource: xxxxx # added here
client-id: loginapp
[...]
For more informations: