Access to webapp back-ends from outside of DSS (with Postman)

Registered Posts: 2 ✭✭

I found this article but i have some questions, hope someone can help me.

I created a standard webapp with python server, im trying to access the endpoints from postman.

I'm sending my project apikey as suggested by documentation but I'm receving this message:

<body>
	<h1 style="margin-top: 50px">HTTP error 401 (Not authenticated)</h1>

	<h3>The webapp backend mandates that the current browser has been logged in into <a id="redirect_login"
			href="/">DSS</a>.</h3>
	<h3>You will be redirected to the login page shortly...</h3>
</body>

This is how im sending my apiKey:

The API key can be sent using either HTTP Bearer Token Authentication or Basic Authentication:

  • When using Bearer Token Authentication, use the API key as the token
  • When using Basic Authentication, leave the username blank and use the API key as the password

SO THE QUESTION IS:

Why i dont receive a response from my backend? And im missing something, on the post they are getting response without any type of apikey but im not even getting to that point.

Thanks

PD I dont have permissions to create api's with API Designer so im seeing as an alternative.

Answers

  • Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,418 Neuron
    edited March 5

    Well the post you linked says you should pass the key as an HTTP header variable ("X-DKU-APIKey") not using basic authentication. So change your Postman request to pass the key via the required variable. And the API Designer is something completely different than Webapps so it’s not relevant to your issue.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.