add TeamData struct to openid.go

This commit is contained in:
viehlieb 2023-01-27 13:41:30 +01:00
parent 5061028f20
commit d3fa4a04c0
1 changed files with 6 additions and 0 deletions

View File

@ -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"`