#Authentication
2 articles

13 Building OAuth 2.0 Authentication Middleware with `httprouter` in Go
In modern programming, application security is a top priority, especially when dealing with user authentication. One widely used authentication method today is OAuth 2.0, which allows applications to access user resources without exposing their credentials. In this article, we will discuss how to create an authentication middleware using OAuth 2.0 with Go and the httprouter
library.

10 Adding Simple Authentication
At this stage we will try to add simple Authentication by using middleware in Golang. You need to know that middleware is the process of intercepting an API which before the service when accessed goes to the *handler * layer, it will pass through this * middleware * layer (which we will create) to capture and process something for certain needs. For example, in this case we will intercept the service process to see if the API has a header with the key condition X-API-Key
.