Follow

Elvis 6 REST API - API login

Comments

6 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
  • Avatar
    Sergei Golikov

    Hi,

    Сontrary to the article and Jan Kampling's results, I'm able to login with /services/apilogin using Postman and Pro User license. Elvis server v 6.43.1.636. Are there any changes in this version?

    0
    Comment actions Permalink
  • Avatar
    Vincent Bergervoet

    Hello Sergei,

    Pro user and other user types are allowed to use the Api Login call, but they will not be allowed multiple API sessions.
    There is no change with 6.43 in license handling. We will reword the Note to be an advice instead of requirement.

    Regarding postman working on your end is due to headers it does or doesn't send with the call.
    Look into Postman configuration documentation to know more about headers sent.

    Regards,
    Vincent

    0
    Comment actions Permalink

Please sign in to leave a comment.