Frontend web API

19 września 2021 22:44:11
  • Wysłany: 6 września 2021 23:09
  • 4
I followed the documentation for the frontend web api and generated a token using:
https://localhost:44350/tokenweb/guest

when I test calling  "https://localhost:44350/Component/Index?Name=Menu" from  postman, it gives this error:
"Customer not has permission"

if I try a token from "https://localhost:44350/tokenweb/antiforgery", the error is:

No SecurityTokenValidator available for token.

Am I missing something here?

I am using the latest revision of GN2
0
  • Wysłany: 7 września 2021 06:07
  • Moderator
  • 917
Antonio wrote:
I followed the documentation for the frontend web api and generated a token using:
https://localhost:44350/tokenweb/guest

when I test calling  "https://localhost:44350/Component/Index?Name=Menu" from  postman, it gives this error:
"Customer not has permission"

if I try a token from "https://localhost:44350/tokenweb/antiforgery", the error is:

No SecurityTokenValidator available for token.

Am I missing something here?

I am using the latest revision of GN2


Hello Antonio,

Well, I need to edit the previous response. The most probable scenario is that your guest's customers group doesn't have permission to use API. Go to Configuration -> Permissions and mark the Allow to use API to enabled on Customer Group - Guests.
Best regards,
Patryk

GrandNode Team
0
  • Wysłany: 18 września 2021 09:43
  • 4
Hello Patryk,

         It is working now after enabling the permission you mentioned.

Thank You,
Ali
0
back to top
Filters