JetBrains / guide

The JetBrains Guide is a collection of resources for learning JetBrains IDEs.
https://www.jetbrains.com/guide
Other
26 stars 12 forks source link

Add new Go tutorial - Authentication for Go Applications: The Secure Way #14

Closed asspirin12 closed 1 year ago

asspirin12 commented 1 year ago

Hi there!

Could you please add a new Go tutorial? Thanks a bunch!

P.S. FYI, I had an issue with adding http scripts. It turns out that if you have {{ }} syntax in your template, you have to wrap it:

{% raw %}

### Authorization by token, part 1. Retrieve and save token.
POST http://admin:secret@0.0.0.0:8080/login
Content-Type: application/json
> {% client.global.set("auth_token", response.body.token); %}
### Authorization by token, part 2. Use token to authorize.
GET http://0.0.0.0:8080/resource
Authorization: Bearer {{auth_token}}

{% endraw %}
pauleveritt commented 1 year ago

Thanks for this. It looks like a "link" to an external tutorial, right?

I suggest, if you don't mind, waiting a month for Guide 4. We have a Link content type that could serve the purpose.

asspirin12 commented 1 year ago

This is actually a full tutorial produced by an external author for us.

pauleveritt commented 1 year ago

I'll go ahead and merge this. For Guide 4, let's see if we can map it to Link.