Skip to content

Commit

Permalink
Merge pull request #3 from janzenbupa/jwt-golang
Browse files Browse the repository at this point in the history
Added more margin.
  • Loading branch information
janzenbupa authored Mar 14, 2024
2 parents 9e895ce + c0ba435 commit b37d114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jwt-with-go.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <H2 class="h2-title" style="color:#676798">Using JWTs in Golang</H2>
</code>
</div>

<p>Now we need to add a "/users" endpoint, which is what we defined in our claims.
<p style="margin-left:20px;margin-right:20px;">Now we need to add a "/users" endpoint, which is what we defined in our claims.
This endpoint will need to be authorized for our authenticated user, but since we already added the endpoint to our claims, we just need to add middleware to handle that authorization.
We simply defined a []string in our code to generate a token. When generating a token we set our "Endpoints" claim to a slice that we hardcoded, in reality these would come a database configuration or somewhere other than a slice in code.
</p>
Expand Down

0 comments on commit b37d114

Please sign in to comment.