Add GitHub to FederationDomain IdP ListerFinder

This commit is contained in:
Benjamin A. Petersen
2024-04-03 11:14:13 -04:00
parent 8938990c04
commit 0c7e95539f
16 changed files with 144 additions and 12 deletions

View File

@@ -74,6 +74,9 @@ type CustomSessionData struct {
// Only used when ProviderType == "activedirectory".
ActiveDirectory *ActiveDirectorySessionData `json:"activedirectory,omitempty"`
// Only used when ProviderType == "github".
GitHub *GitHubSessionData `json:"github,omitempty"`
}
type ProviderType string
@@ -140,6 +143,15 @@ func (s *ActiveDirectorySessionData) Clone() *ActiveDirectorySessionData {
}
}
type GitHubSessionData struct {
// TODO: flesh this out
}
func (s *GitHubSessionData) Clone() *GitHubSessionData {
dataCopy := *s // this shortcut works because all fields in this type are currently strings (no pointers)
return &dataCopy
}
// NewPinnipedSession returns a new empty session.
func NewPinnipedSession() *PinnipedSession {
return &PinnipedSession{