aerojun

Filemaker 17 Auth failing

Discussion created by aerojun on Aug 15, 2018
Latest reply on Aug 15, 2018 by mdenyse

I've just installed FM17 Server and noticed the API documentation, so i'm giving it a try. After reading FileMaker 17 Data API Guide, the Log in to a database session section says you most POST to obtain the token. The issue is that when i try to auth to the server, it returns:

 

{"messages":[{"message":"Allowed HTTP Methods: POST"}],"response":{}}

 

The request is the following:

 

curl -X POST \

  http://SERVER/fmi/data/v1/databases/MYDB/sessions \

  -H 'Authorization: Basic ASDfgW89PkIUF9VLRKO=' \

  -H 'Cache-Control: no-cache' \

  -H 'Content-Type: application/json' \

  -H 'Postman-Token: b3efd656-5fea-4817-acd7-ad4047cf2fa6' \

  -d '{}'

 

Looks like a bug on the API.

Outcomes