Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apiguy/go-hmacauth
/ functions
Functions
39 in github.com/apiguy/go-hmacauth
⨍
Functions
39
◇
Types & classes
8
↓ 27 callers
Function
expect
Test helpers from martini
hmacauth_test.go:13
↓ 10 callers
Function
refute
(t *testing.T, a interface{}, b interface{})
hmacauth_test.go:19
↓ 7 callers
Function
parseAuthHeader
(header string)
hmacauth.go:132
↓ 7 callers
Function
validateTimestamp
(ts time.Time, options *Options)
hmacauth.go:170
↓ 6 callers
Method
Error
()
errors.go:22
↓ 6 callers
Function
HMACAuth
(options Options)
hmacauth.go:65
↓ 6 callers
Function
stringToSign
(req *http.Request, options *Options, timestamp string)
hmacauth.go:105
↓ 3 callers
Function
secondsAgo
(seconds int32)
hmacauth_test.go:31
↓ 3 callers
Function
signString
(str string, secret string)
hmacauth.go:99
↓ 2 callers
Function
secondsFromNow
Make getting test times easier
hmacauth_test.go:27
↓ 1 callers
Method
Error
()
errors.go:30
↓ 1 callers
Method
IsValid
()
hmacauth.go:51
↓ 1 callers
Method
SetTimestamp
(isoTime string)
hmacauth.go:57
Method
Error
()
errors.go:38
Function
Test_HMACAuth
(t *testing.T)
hmacauth_test.go:299
Function
Test_HMACAuth_bad_api_key
(t *testing.T)
hmacauth_test.go:225
Function
Test_HMACAuth_bad_signature
(t *testing.T)
hmacauth_test.go:278
Function
Test_HMACAuth_incorrect_header_order_in_string_to_sign
(t *testing.T)
hmacauth_test.go:246
Function
Test_HMACAuth_invalid_options
(t *testing.T)
hmacauth_test.go:200
Function
Test_HMACAuth_no_auth_header
(t *testing.T)
hmacauth_test.go:209
Function
Test_parseAuthHeader
(t *testing.T)
hmacauth_test.go:80
Function
Test_parseAuthHeader_invalid_timestamp
(t *testing.T)
hmacauth_test.go:93
Function
Test_parseAuthHeader_missing_APIKey
(t *testing.T)
hmacauth_test.go:107
Function
Test_parseAuthHeader_missing_Signature
(t *testing.T)
hmacauth_test.go:114
Function
Test_parseAuthHeader_missing_Timestamp
(t *testing.T)
hmacauth_test.go:121
Function
Test_parseAuthHeader_repeated_key
(t *testing.T)
hmacauth_test.go:100
Function
Test_repeatedParameter
(t *testing.T)
hmacauth_test.go:73
Function
Test_stringToSign
(t *testing.T)
hmacauth_test.go:127
Function
Test_stringToSign_missing_required_header
(t *testing.T)
hmacauth_test.go:186
Function
Test_stringToSign_with_headers
(t *testing.T)
hmacauth_test.go:142
Function
Test_stringToSign_with_ordered_headers
(t *testing.T)
hmacauth_test.go:164
Function
Test_validateTimeout_expired
(t *testing.T)
hmacauth_test.go:60
Function
Test_validateTimeout_invalid_future_date
(t *testing.T)
hmacauth_test.go:35
Function
Test_validateTimeout_now
(t *testing.T)
hmacauth_test.go:48
Function
Test_validateTimeout_past_no_timeout_set
(t *testing.T)
hmacauth_test.go:54
Function
Test_validateTimeout_past_not_expired
(t *testing.T)
hmacauth_test.go:67
Function
Test_validateTimeout_valid_future_date
(t *testing.T)
hmacauth_test.go:42
Method
__call__
(self, r)
clients/requests.py:29
Method
__init__
(self, api_key, secret_key, required_headers=None)
clients/requests.py:21