Migrated from Redmine #315 | Author: jocelyn girard
Status: New | Priority: High, I’m very impatient | Created: 2019-01-21
Hello,
I tried to use the /admin API with token from username/password authentication.
I get the token, but seems to be unusable when I tries to get ‘getCurrentUserDetails’ or other service from /admin.
request header : { ‘X-Company-Login’: $company, ‘X-Token’: $userToken }
request body : {“jsonrpc”:“2.0”,“id”:1548109020617,“method”:“getCurrentUserDetails”,“params”:{}}
response :
{ error: { code: -32600, message: ‘Access denied’, data: null },
id: ‘1548109020617’,
jsonrpc: ‘2.0’ }
The user account used to get the token is administrator level, it will be high enough to communicate with /admin ?
Thanks for your support.
Jocelyn