Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for addAuthHeader (0.18 sec)

  1. internal/config/dns/operator_dns.go

    	defaultOperatorContextTimeout = 10 * time.Second
    	// ErrNotImplemented - Indicates the functionality which is not implemented
    	ErrNotImplemented = errors.New("The method is not implemented")
    )
    
    func (c *OperatorDNS) addAuthHeader(r *http.Request) error {
    	if c.username == "" || c.password == "" {
    		return nil
    	}
    
    	claims := &jwt.StandardClaims{
    		ExpiresAt: int64(15 * time.Minute),
    		Issuer:    c.username,
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 06 16:56:10 GMT 2023
    - 6.6K bytes
    - Viewed (0)
Back to top