Custom API with authentication

Hello! In my spring boot camunda app i have rest controller on endpoint /api/dictionary/counterparty

I try call him from Embeded form and it work good!

$http({
	    method: 'GET',
		url: '/api/dictionary/counterparty',
	}).then(function successCallback(response) {
	    response.data.forEach(function(value) {
            counterparties.push(new Option(value.name + " - " + value.manager, value.id, false));
        });
        setCounterparties(counterparties);
        $("#form-content").show();
        $(".custom-form-loader").hide();
	},function errorCallback(response) {
		console.log(response);
	});

But i can’t add authentication for this solution.
I try add: Authorization for Camunda REST API - #2 by aravindhrs but on call rest i get window for input login and password.
I try move end point to camunda/api/dictionary/counterparty but it didn’t work.
I tried many more things, but nothing worked.

Help me please

1 Like

Hi,

If you create a custom API in your springboot app, you will need to add authentication to that API within your springboot app. Ive found these a good source of springboot tutorials… This tutorial is probably closest to the architecture your are trying to achieve…

regards

Rob