Hasura Auth API + Postman collection

Suman Kumar Bhadra
Jul 21, 2017 · 1 min read

Hi , as you must have known in traditional systems we generally have to include a code to validate the credentials of the user and store it in the database but sometimes it can provide a backdoor to hackers or may crash.Using Hasura Auth API makes it more fluid by providing additional layer of security and simplifying the process for the developers.It accepts user credentials in JSON format and send the access token to the application program.

As it is shown in above image we just sent a request with username , password and hasura_id,hasura_roles and auth_token are thrown back to the application program.User type is determined by hasura_roles and the auth_token is used to identify the user in further requests.

And when a request of logging out is made via username and authentication token the user is logged out.

)
Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade