Frontend web API

Sunday, February 5, 2023 10:15:41 PM
  • Posted: Monday, September 6, 2021 11:09 PM
  • 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
  • Posted: Tuesday, September 7, 2021 6:07 AM
  • 953
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
  • Posted: Saturday, September 18, 2021 9:43 AM
  • 4
Hello Patryk,

         It is working now after enabling the permission you mentioned.

Thank You,
Ali
0
back to top
Filters