summaryrefslogtreecommitdiff
path: root/pkg/vpn/bonafide/auth.go
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/vpn/bonafide/auth.go
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/vpn/bonafide/auth.go')
-rw-r--r--pkg/vpn/bonafide/auth.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/vpn/bonafide/auth.go b/pkg/vpn/bonafide/auth.go
index 62d3d8f..5a97b3f 100644
--- a/pkg/vpn/bonafide/auth.go
+++ b/pkg/vpn/bonafide/auth.go
@@ -25,6 +25,5 @@ type credentials struct {
type authentication interface {
needsCredentials() bool
- getToken(cred *credentials) ([]byte, error)
- getPemCertificate(cred *credentials) ([]byte, error)
+ getToken(user, password string) ([]byte, error)
}