Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hello All! Does Anyone Know What That Specific Api Endpoint Is For Login Authentication? I Have Reffered To

Hello all!

Does anyone know what that specific API endpoint is for login authentication?
I have reffered to this documentation and I am trying to curl ClearMl's apiserver using curl None . However, I don't think this is the right API endpoint. If anyone has any information, that be great!

  
  
Posted 9 months ago
Votes Newest

Answers 5


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!

  
  
Posted 9 months ago

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.

  
  
Posted 9 months ago

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

  
  
Posted 9 months ago

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

  
  
Posted 9 months ago

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?

  
  
Posted 9 months ago
663 Views
5 Answers
9 months ago
9 months ago
Tags