Composition API | Authentication

Greetings,

how does the request´s header look like to authenticate for example a dialog user?

how do I log in to the API Project?

[{"Level":2,"Message":"Your session has expired. Please log in again to the API project \"Test\".","Number":57002006}]

is it possible to require authentication for the API Documentation (Swagger UI)?

Thank you in advance

Parents
  • Hi,

    You need to make a POST call to the URL imx/login/test first, providing the credentials in the POST body. For examplee´:

    { "Module": "RoleBasedPerson", "User": "USERNAME", "Password": "PASSWORD" }

    The response will contain a cookie token that needs to be submitted in every subsequent request.

Reply
  • Hi,

    You need to make a POST call to the URL imx/login/test first, providing the credentials in the POST body. For examplee´:

    { "Module": "RoleBasedPerson", "User": "USERNAME", "Password": "PASSWORD" }

    The response will contain a cookie token that needs to be submitted in every subsequent request.

Children