Documentation ¶
Overview ¶
Package rkginauth is auth middleware for gin framework
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
func Middleware(opts ...rkmidauth.Option) gin.HandlerFunc
Middleware validate bellow authorization.
1: Basic Auth: The client sends HTTP requests with the Authorization header that contains the word Basic, followed by a space and a base64-encoded(non-encrypted) string username: password. 2: API key: An API key is a token that a client provides when making API calls. With API key auth, you send a key-value pair to the API in the request headers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.