"Sign in to your account" HTML response being returned from my Azure Integrated Rest API
Hello, I am getting a 200 response that includes HTML that says "Sign in to your account" when hitting my Spring boot protected api. I am first getting a bearer token with the following parameters. I am hitting the endpoint https://willsorganization.b2clogin.com/willsorganization.onmicrosoft.com/B2C_1_will_signup/oauth2/v2.0/token obviously with the clientId/clientSecrets hidden for privacy purposes.
client_id: {{myClientId}}
scope: https://willsorganization.onmicrosoft.com/a6a32f54-abcd-47bb-810c-f54bc3f66b6e/.default
grant_type: client_credentials
client_secret: {{myClientSecret}}
I then pass in my bearer token to my api call to my service at [http://localhost:8080/] as a get request. This is where I get the "Sign in to your account" response instead of the expected response from the api.