Hi Suberri, Moshe [GTSUS] I want to help you with this questions.
As I understand, you tried a POST request against EntraID endpoint to get a token.
If you have a service principal (SPN) created and want to use that identity to receive the token, you only need the client_id and secret in the request.
Otherwise, you remove these attributes and use only the username and password. But not both.
I think the endpoint is not the right one here, so please check out this article: https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow#first-case-access-token-request-with-a-shared-secret
I think it will help you to build your POST request correctly.
If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you!