How you authenticate with the identity provider depends on the grant type you are using: Authorization Code with PKCE Client Credentials Basic Authentication