Share via

Bitglass API returning 403 (Unauthorized) status from Azure portal but is successful from other platforms.

Sanmit Biraj (TATA CONSULTANCY SERVICES LTD) 0 Reputation points Microsoft External Staff
2024-09-23T11:58:08.2533333+00:00

The Api call for URL - "https://portal.eu.bitglass.net/api/bitglassapi/logs?type=cloudsummary&responseformat=csv&startdate=2016-09-10T04:25:05Z&cv=1.0.1" shows status as unauthorized when the call is made from Azure portal through Azure cli as well as Azure function app but returns response from other platforms like postman, online curl even other cloud clis.

User's image

User's image

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Anonymous
    2024-09-25T12:33:36.2733333+00:00

    Hi
    From the forcepoint docs it looks like there may be more than one auth option for their apis but looking at the redacted screen shots you included for curl I would assume you're using basic auth

    https://en.wikipedia.org/wiki/Basic_access_authentication

    basic auth requires a base64 encoded Authorization header which is username:password (as per the wiki link)

    REF https://help.forcepoint.com/fpone/deploy/rhtml/guid-10bc8f08-eb1e-4597-9fbd-79189e634f61.html

    So you need the http request to include a valid basic auth header and this should solve the problem

    To your specific question:
    Again going by your screen shots I think this may be a CURL issue , CURL will add the auth header but allows you to pass the credential as a parameter . But, I dont know if the CURL in the Az cloud shell is working the same as the CURL in the other terminal window . Possibly not going on your example

    Hope this helps

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.