Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17324

GraphQL problem - The JWT string must have two dots

$
0
0

Hello,

I’m trying to use GraphQL. I installed the API module, set the correct permission (chmod 600 /etc/asterisk/keys/api_oauth_public.key).

Both my application, as well as the GraphQL Explorer always return the same responds.

{
  "error": "access_denied",
  "message": "The resource owner or authorization server denied the request.",
  "hint": "The JWT string must have two dots"
}

I use this query (documented here: GraphQL support in FreePBX 15 | FreePBX - Let Freedom Ring):

query {
  allModules {
    modules {
      name
      version
    }
  }
}

But also the other queries from the documentation page [1] all give the same error.

https://sangomakb.atlassian.net/wiki/spaces/PG/pages/25755702/GraphQL+PBX+APIs+Documentation

What am I doing wrong? I tested on both FreePBX 15 and 16.

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 17324

Trending Articles