summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-02-11 13:43:01 +0100
committerkali kaneko (leap communications) <kali@leap.se>2020-08-20 20:27:42 +0200
commitc56df01274a91ff730018dcd6272423a3e1593f0 (patch)
tree0650d3b8cb27caff177b7306cc7f27d987824664 /pkg/bitmask
parent8bb41cff9f47895e00d7773dfd9372a7e17fae59 (diff)
[feat] expose auth API in pkg/vpn
Be able to check if it needs auth and then be able to login. Use the logged in token for fetching the cert.
Diffstat (limited to 'pkg/bitmask')
-rw-r--r--pkg/bitmask/bitmask.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/bitmask/bitmask.go b/pkg/bitmask/bitmask.go
index df26fc0..927e486 100644
--- a/pkg/bitmask/bitmask.go
+++ b/pkg/bitmask/bitmask.go
@@ -28,4 +28,6 @@ type Bitmask interface {
ListGateways(provider string) ([]string, error)
UseGateway(name string) error
UseTransport(transport string) error
+ NeedsCredentials() bool
+ DoLogin(username, password string) (bool, error)
}