From d3fa4a04c0e0aa39258e3a90cc6e55cff0a405b2 Mon Sep 17 00:00:00 2001 From: viehlieb Date: Fri, 27 Jan 2023 13:41:30 +0100 Subject: [PATCH] add TeamData struct to openid.go --- pkg/modules/auth/openid/openid.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/modules/auth/openid/openid.go b/pkg/modules/auth/openid/openid.go index fefd21b74..3ede85ba6 100644 --- a/pkg/modules/auth/openid/openid.go +++ b/pkg/modules/auth/openid/openid.go @@ -20,6 +20,7 @@ import ( "context" "encoding/json" "errors" + "fmt" "math/rand" "net/http" "time" @@ -58,6 +59,11 @@ type Provider struct { openIDProvider *oidc.Provider Oauth2Config *oauth2.Config `json:"-"` } +type TeamData struct { + TeamName string + OidcID string + Description string +} type claims struct { Email string `json:"email"` Name string `json:"name"`