summaryrefslogtreecommitdiff
path: root/cmd/vpnweb/vpnweb.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2020-01-24 22:34:09 -0600
committerkali kaneko (leap communications) <kali@leap.se>2020-01-24 22:35:54 -0600
commit1c9220e04016d035c3c688c315ceabe274f45dfc (patch)
tree796488fe592e117fd97781a018bc4b2060a0672d /cmd/vpnweb/vpnweb.go
parentd3b21e5adc27cbb472e688b7c602e3bd721dec31 (diff)
initial sip implementation
Diffstat (limited to 'cmd/vpnweb/vpnweb.go')
-rw-r--r--cmd/vpnweb/vpnweb.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/vpnweb/vpnweb.go b/cmd/vpnweb/vpnweb.go
index 2305d98..ff25e09 100644
--- a/cmd/vpnweb/vpnweb.go
+++ b/cmd/vpnweb/vpnweb.go
@@ -21,11 +21,11 @@ func main() {
/* protected routes */
/* TODO ----
- http.HandleFunc("/3/auth", auth.AuthMiddleware(opts.Auth))
http.HandleFunc("/3/refresh-token", auth.RefreshAuthMiddleware(opts.Auth))
*/
- http.Handle("/3/cert", auth.AuthMiddleware(opts.Auth, ch))
+ http.Handle("/3/cert", auth.RestrictedMiddleware(opts.Auth, ch))
+ http.Handle("/3/auth", auth.Authenticator(opts.Auth))
/* static files */