NewBasicAuth returns a UserPass Authmode, adequate to support HTTP basic authentication.
(username, password string)
| 156 | // NewBasicAuth returns a UserPass Authmode, adequate to support HTTP |
| 157 | // basic authentication. |
| 158 | func NewBasicAuth(username, password string) AuthMode { |
| 159 | return &UserPass{ |
| 160 | Username: username, |
| 161 | Password: password, |
| 162 | } |
| 163 | } |
| 164 | |
| 165 | // NewTokenAuth returns an Authmode similar to HTTP Basic Auth, which is only |
| 166 | // relying on token instead of a username and password. |
no outgoing calls
no test coverage detected