Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings
gofr-dev

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use HTTP Auth JWT #785

Answered by srijan-27
christianmahardhika asked this question in Q&A
How to use HTTP Auth JWT #785
Jul 4, 2024 * 1 comments * 2 replies
Answered by srijan-27 Return to top
Discussion options

I'm working on a GoFr-based web application and need to implement JWT (JSON Web Token) authentication for securing my HTTP endpoints. Could you provide guidance on how to set up JWT authentication in GoFr? Specifically, I'm looking for a step-by-step approach to generate, validate, and use JWTs for protecting my API routes.

Would you like more details on how to implement this in GoFr?

You must be logged in to vote

@christianmahardhika - Did you take a look at the documentation: https://gofr.dev/docs/advanced-guide/http-authentication,
It would be helpful.

View full answer

Replies: 1 comment 2 replies

Comment options

srijan-27
Jul 4, 2024

@christianmahardhika - Did you take a look at the documentation: https://gofr.dev/docs/advanced-guide/http-authentication,
It would be helpful.

You must be logged in to vote
2 replies
Comment options

christianmahardhika Jul 4, 2024
Author

I've read the documentation carefully but unfortunately, I not found http-authentication that relate to JWT (from header Bearer Token). I am afraid I just found Basic Auth and Api Key.

Comment options

srijan-27 Jul 4, 2024

I think you missed the 3rd heading of the page.
The page consists of 3 parts. First is Basic Auth, second is API Key, and the third is OAuth which you can refer for Bearer token auth.

Answer selected by srijan-27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants