Skip to main content
Best answer

Clarification on authentication.


In session-auth, is it mandatory for backend to return a User object/ JSON when you test for successfull exchange of session-key or authenticationToken for username and password. I mean exchnage of authenticationToken is happening while reaching /login endpoint while username and password are passed. Now witht the valid authenticationToken I can test any protected endpoint which this user is authorized to reach. 

Best answer by ZaneBest answer by Zane

If you’re planning on publishing your integration in the Zapier app directory, you’ll need to configure a “Connected Account Label” - something unique to the user that they can recognize to quickly determine which account they used to connect with your API.  A value returned by the auth test request, like a name, or email address, are often used for this and is the often the most convenient way to populate Connected Account Label.

Connected account label in the product:

 

View original
Did this topic help you find an answer to your question?
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

ikbelkirasan
Forum|alt.badge.img+12
  • Zapier Expert
  • 555 replies
  • May 6, 2021

Hi @dinesh_sharma - If you don’t want to return any other data, you can just return an empty object from the test function after the request is done successfully.


Forum|alt.badge.img+9
  • Zapier Staff
  • 331 replies
  • Answer
  • May 6, 2021

If you’re planning on publishing your integration in the Zapier app directory, you’ll need to configure a “Connected Account Label” - something unique to the user that they can recognize to quickly determine which account they used to connect with your API.  A value returned by the auth test request, like a name, or email address, are often used for this and is the often the most convenient way to populate Connected Account Label.

Connected account label in the product:

 


Thanks for the replies, really appreciate it.