From c56df01274a91ff730018dcd6272423a3e1593f0 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Tue, 11 Feb 2020 13:43:01 +0100 Subject: [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. --- pkg/bitmask/bitmask.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkg/bitmask') 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) } -- cgit v1.2.3