Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Authenticated ¶
type Authenticated struct { }
type DigestAuth ¶
type DigestAuth struct {
// contains filtered or unexported fields
}
func NewDigestAuth ¶
func NewDigestAuth(secretProvider SecretProvider) *DigestAuth
func (*DigestAuth) CheckSign ¶
func (digestAuth *DigestAuth) CheckSign(ctx *gin.Context) (any, error)
type SecretProvider ¶
SecretProvider key = md5(md5(p)+u) sign = md5(key+nonce)
Click to show internal directories.
Click to hide internal directories.