-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(auth): remove setupOauthConfig state
- Loading branch information
1 parent
d5a0d2d
commit a27bc6a
Showing
2 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package auth | ||
|
||
import "net/http" | ||
|
||
type apiTokeAuthenticator struct { | ||
token string | ||
} | ||
|
||
func NewApiAuthenticator(token string) *apiTokeAuthenticator { | ||
return &apiTokeAuthenticator{token: token} | ||
} | ||
|
||
func (a *apiTokeAuthenticator) Login() error { | ||
// No Op | ||
return nil | ||
} | ||
|
||
func (a *apiTokeAuthenticator) Client() *http.Client { | ||
return nil | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters