RSSAmplifier

Alex Edwards · Jun 21, 2021

How to correctly use Basic Authentication in Go

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

When searching for examples of HTTP basic authentication with Go, every result I found unfortunately contained code which was either out-of-date (i.e. doesn't use the r.BasicAuth() functionality that was introduced in Go 1.4) or failed to mitigate the risk of timing attacks. So in this post, I'd like to discuss how to use it correctly in your Go applications. We'll start with a bit of background…

Read on alexedwards.net

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.