engineering-portal icon indicating copy to clipboard operation
engineering-portal copied to clipboard

Using JWT for Authentication in Golang

Open raghunath-r-a opened this issue 3 years ago • 9 comments

raghunath-r-a avatar Sep 27 '21 06:09 raghunath-r-a

Hi @raghunath-r-a I would be interested in working on this blog as I have some experience in using JWT tokens in Golang.

sasagarw avatar Sep 29 '21 07:09 sasagarw

Hi @sasagarw

This is now assigned to you. Please proceed with an outline and then drafting the blog post.

If you're stuck anywhere or having doubts, please do let us know.

raghunath-r-a avatar Sep 29 '21 10:09 raghunath-r-a

Hi @sasagarw Can you please let us know your progress on this?

raghunath-r-a avatar Oct 26 '21 10:10 raghunath-r-a

Hi @raghunath-r-a, Can I take this up and work on it?

luigimorel avatar Apr 22 '22 12:04 luigimorel

@morelmiles sure, please create an outline and share with us. After we collaboratively finalize the outline, you can draft and submit the content. Sounds good?

raghunath-r-a avatar Apr 22 '22 13:04 raghunath-r-a

yes it does. i'll share once i'm done with the outline.

luigimorel avatar Apr 22 '22 13:04 luigimorel

Here's the layout.

  • A bullet list of what's to be learnt by going through the tutorial.
  • What is authentication?
  • What is JWT and how does it work.
  • Prerequisites to know before starting the tutorial
  • A section about the projet setup and dependencies
  • Code implementation of a simple app with auth -- using gin, postgres and a jwt package
  • Test the routes (login and register) using Postman before adding jwt as an auth helper. (Attach screenshots of the postman responses)
  • Add jwt and test the routes in Postman again.
  • Concluding remarks.

@raghunath-r-a let me know what you think.

luigimorel avatar Apr 23 '22 16:04 luigimorel

Hi @morelmiles The outline looks good. While drafting your content, please ensure to cover the following as well:

  • securing/protecting routes
  • handling post-authentication routes
  • renewing the token

Please use the following guidelines for drafting and submitting your content:

  • https://github.com/LoginRadius/engineering-portal/blob/main/GUIDELINES.md
  • https://github.com/LoginRadius/engineering-portal/blob/main/CONTRIBUTING.md

Best, @raghunath-r-a

raghunath-r-a avatar Apr 25 '22 12:04 raghunath-r-a

Hi @morelmiles May I please know your progress on this?

raghunath-r-a avatar Jun 07 '22 07:06 raghunath-r-a