Commencer un nouveau sujet
Répondu

API Key Authentication

I am trying to configure my REST APIs with API Key based authentication. However,  even with Admin role assigned to the key, when I try to execute APIs to get count of records or model export I am getting "Invalid Authentication" error when triggered from my postman app. I am putting entire key value of xxx.yyyyyyy in the key field in the authorization window.


Please let me know the right place to configure authentication for APIs to work without using basic auth.


Meilleure réponse

Hi,

Check that the API Key is setted on the header in your Postman.


Réponse

Hi,

Check that the API Key is setted on the header in your Postman.


1 personne aime ça

Thank you so much Aymen for your help, that takes me to next level.

But now I am getting the response "You do not have the permissions to access the application. Please contact your administrator." But I have given semadmin role to this key.




 

Check your roles and privileges in your model.

Maybe the semarchyAdmin is not present as privilege.


1 personne aime ça

Thanks again Aymen, I granted privileges to my semadmin user role and then the query is responding.

Connexion pour poster un commentaire