Quantcast
Channel: Mattermost Discussion Forums - Latest posts
Viewing all articles
Browse latest Browse all 25778

Can't authenticate via curl after setting up docker evaluation version

$
0
0

Since my first message, I switched to using the Ubuntu 16.04 install
of the server but still experiencing the same problems.

I see the System Console but I don't see:
Settings -> Authentication -> Email.
The closest is:
Settings -> Email Settings.

I don't see 'Enable sign-in with Email' but I do see 'Enable Sign Up With Email'.
It's set to true. I've tested creating new user account and verifying via email links.
That works.

I'm finding the API extremely hard to use.
I'm using 1.4.0 of the software.
But what version of the API am I using?
I see mention of v1 and v3 in the (sparse) documentation.
What is the correct curl call to obtain an authentication token?
Do I use the username I created or the email I signed up with?

When I run bin/platform -version
I see:

$ bin/platform -version
Version: 1.4.0
Build Number: 5232
Build Date: Thu Jan 14 23:10:40 UTC 2016
Build Hash: 8089487d5caccbc642e9fef8ee0e5930ff1e639d
Build Enterprise Ready: false

My attempts to use curl get the following response:

$ curl -i -d '{"team_name":"springshot","login_id":"guy.argo@springshot.com","password":"******"}' http://racerslounge.chat:8065/api/v1/users/login
HTTP/1.1 403 Forbidden
Content-Type: application/json
X-Ratelimit-Limit: 10
X-Ratelimit-Remaining: 9
X-Ratelimit-Reset: 1
X-Request-Id: 1u55y5qaujfb7jbkifte8y1z4a
X-Version-Id: 1.4.0.1469641268
Date: Wed, 27 Jul 2016 17:51:25 GMT
Content-Length: 170

{"message":"Either user id or team name and user email must be provided","detailed_error":"","request_id":"1u55y5qaujfb7jbkifte8y1z4a

What are the precise fields I need to use?
What values should be in those fields?

Very frustrated.
Guy


Viewing all articles
Browse latest Browse all 25778

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>