mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-25 12:37:35 +00:00
initial work on OIDC (SSO) integration
This commit is contained in:
6
app.go
6
app.go
@@ -45,6 +45,10 @@ type Config struct {
|
||||
TLSKeyPath string
|
||||
|
||||
DNSConfig *tailcfg.DNSConfig
|
||||
|
||||
OIDCEndpoint string
|
||||
OIDCClientID string
|
||||
OIDCClientSecret string
|
||||
}
|
||||
|
||||
// Headscale represents the base app of the service
|
||||
@@ -168,6 +172,8 @@ func (h *Headscale) Serve() error {
|
||||
r.GET("/register", h.RegisterWebAPI)
|
||||
r.POST("/machine/:id/map", h.PollNetMapHandler)
|
||||
r.POST("/machine/:id", h.RegistrationHandler)
|
||||
r.GET("/oidc/register/:mKey", h.RegisterOIDC)
|
||||
r.GET("/oidc/callback", h.OIDCCallback)
|
||||
var err error
|
||||
|
||||
timeout := 30 * time.Second
|
||||
|
Reference in New Issue
Block a user