Skip to main content
August 7, 2024
Question

Is there a way to retrieve Web API OAUTH 2.0 clientId value

  • August 7, 2024
  • 1 reply
  • 0 views

Hello all, 

I have configured a web API and provided OAuth 2.0 authentication. I have tested it from Postman, and it's working fine. However, I have a requirement to validate something based on the clientId of the API request. Is there a way to read the ClientID from the request?

Thanks

1 reply

davidj137213
August 7, 2024

NO, i think that there is no way to do that in a programatic way.. Have un mind that the client id is one of the parameters used in the connnection.. so it's not recomendable to make it visible.

Anyway, if you need to do it anyway, store the value in a constant, that you will use when validating.