← Back to list

Hasura Internship Week 3

3.3-Hasura Auth API and Postman Collection

Anwesh Bohidar · 2017-07-10 17:41 · 0 claps · 1.5 min read
#api #hasura-internship #worklog #auth-api
Open on Medium ↗

Hasura Internship Week 3

3.3-Hasura Auth API and Postman Collection

I know this isn’t the original logo of hasura ….but just couldn’t resist..;)

I know this isn’t the original logo of hasura ….but just couldn’t resist..;)

In my previous blog, we experimented on hasura instant data APIs using Postman. This time we will be see how to handle users, roles and sessions using Hasura auth APIs. These auth API help in authentication and management of user sessions.

Hasura gives a number of APIs for user session and profile management. Here, I will be showing you some of the basic auth APIs.

1.Signup

Start your hasura console and open Postman. In URL section, type http://auth.<project_name>.hasura.me/signup .In the body section, select raw format and set the content type to application/json. In the body type {"username":"user1","password":"pass"}.Then send. You should get response showing your user id and an authentication token.

Sorry, can’t show you the auth token

Sorry, can’t show you the auth token

Copy this auth token as you will require it now while accessing your profile.

2. Accessing Profile

Make another post request to the url http://auth.<project-name>.hasura.me/user/account/info. Give your bearer authorization in the headers as shown. Send it.

Again, can’t show you the auth token.

Again, can’t show you the auth token.

3. Logout

Make post request to the url http://auth.<project-name>.hasura.me/user/account/logout. Again, give your bearer authorization in the headers. Send it.

Here’s the documentation link

[embed]Hasura 0.6 documentation Video reference User management on Hasura The video is an introduction to user-management via the project console and…hasura.io

Here’s a video tutorial

[embed]


메타데이터
post_id
9331fb847fe4
slug
hasura-internship-week-3-9331fb847fe4
url
https://medium.com/@anweshbohidar/hasura-internship-week-3-9331fb847fe4
canonical_url
https://medium.com/@anweshbohidar/hasura-internship-week-3-9331fb847fe4
author_url
https://medium.com/@anweshbohidar
status
ok
fetched_at
2026-07-19 21:38:15