Menu

Upgrade from 3.1 to 3.2, API Authentication fail

2025-01-14
2025-01-14
  • Niclas Eriksson

    Niclas Eriksson - 2025-01-14

    As the title says, I've upgraded to 3.2 and now I get an error in my API perl scripts:
    {"message":"Error: Invalid login","code":1}

    I've tried to regenerate the apptoken and verified that it's still in the REST API access group.
    I've also verified that token login is enabled in the config php file (the same as before)

    Has something changed in the API access in the 3.2 version ? Or have I missed some config?

     
  • Niclas Eriksson

    Niclas Eriksson - 2025-01-14

    I see this in the errorlog:
    authent-token: Scope not authorized code: 400 | TokenAuthLog

     
  • Niclas Eriksson

    Niclas Eriksson - 2025-01-14

    I found the problem, on the User object there's a Scope option now (I don't recall seeing that before), which needs to have REST/JSON in it. Now it works as before.

     

    Last edit: Niclas Eriksson 2025-01-14

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.