Unable to call API in on premise environment in version 8.1

akshat
New Contributor II

https://server/OneStreamApi/api/Authentication/LogonAndReturnCookie?api-version=5.2.0&appName=D&Azur...
application/json 116
candidate(s) found for the request path '/api/Authentication/LogonAndReturnCookie'
Endpoint 'OneStreamWebApi.V520.Controllers.AuthenticationController.LogonAndReturnCookie with route pattern 'api/Authentication/LogonAndReturnCookie' is valid for the request path '/api/Authentication/LogonAndReturnCookie'
Request matched endpoint 'OneStreamWebApi.V520.Controllers.AuthenticationController.LogonAndReturnCookie (OneStreamWebApi)'
TokenExchange was not authenticated. Failure message: Unable to authenticate against internal users. Error: Unable to log on user. Azure did not provide a valid user name claim. (Claims presen

2 REPLIES 2

Krishna
Valued Contributor

@akshat  - I would recommend creating a support ticket with OS. To make sure the API request & header information are correct.  Are you using Postman to test the API call?

Thanks
Krishna

JackLacava
Moderator
Moderator

I believe, as it says, that it won't authenticate against internal users. You have to specify an external user.

From the doc: "Web API must be installed on a web server and configured for external authentication providers supporting OAuth2.0/OpenID Connect authorization protocol. Identity providers currently supported are Azure AD (Microsoft Entra ID), Okta, and PingFederate. "