Hi @<1600661428556009472:profile|HighCoyote66> , the UI uses the same REST API to communicate with the backend. I would suggest opening developer tools (F12) and seeing what requests are being sent in the network tab. I think it might be auth.login
Hi @<1523701070390366208:profile|CostlyOstrich36> , is there a public endpoint available for token validation for users? The endpoint I am trying to call is intended only for system/root. When I try to validate a token which is stored in my request header, it is returning error 403. Is there a different way to use this endpoint, or a different one that doesn't require system/root?
Hi @<1600661428556009472:profile|HighCoyote66> , in order to verify a token, you can simply use it to call some endpoint that requires authorization and check you are not receiving 401. The most convenient one (not in the docs, I know, since it's not used by the SDK) can be users.get_current_user
which is also used by the UI to return user details. Just include the token in the authorization header Authorization: bearer <token>
and see if you get 200
Hi @<1523701087100473344:profile|SuccessfulKoala55> , thanks for the heads up. I was able to get my script running yesterday using that exact endpoint. Took a while to find it in the dev tools 😂 . Thanks for all your help!
Hi @<1523701070390366208:profile|CostlyOstrich36> , upon taking a closer look at the documentation, I think I should be using None . I'm going to take a deeper look into the dev tools to see whats up, thanks for the pointer.