Follow

Elvis 6 REST API - API login

Comments

4 comments

  • Avatar
    Steffen Bollermann

    For how many calls / for how long can I use the Bearer? (e.g. Will it get inactive after 10 mins of not making another POST call?)

    0
    Comment actions Permalink
  • Avatar
    Oleksiy Cherkasov

    Hello Steffen
    Bearer active for next 30 minutes after apilogin (can be configured using session.timeout config property)
    You can do any number of calls
    Doing a call will not auto prolongs Bearer expiration time

    0
    Comment actions Permalink
  • Avatar
    Jan Kampling

    I like to do some API testing with Postman. But I already can not get on with the login.

    I'm getting follwering errors

    {
    "loginSuccess": false,
    "loginFaultMessage": "Api login originates from a browser.",
    "serverVersion": "6.33.1.480",
    "authToken": null
    }
     
    [09:05:48,431] [89555295-435] WARN com.ds.acm.web.services.LoginController - Attempt to login like API client from user:'userapi'/ip:'xyz' is forbidden.
     
    What could I do to change this behavior?
     
    Thanks
    0
    Comment actions Permalink
  • Avatar
    Vincent Bergervoet

    Hello Jan,

    The API-login is not meant to be called from browser-like environments like Postman.

    For testing the API with Postman, you may want to use the regular login api:
    https://helpcenter.woodwing.com/hc/en-us/articles/115002663443-Elvis-6-REST-API-login

    0
    Comment actions Permalink

Please sign in to leave a comment.