mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2025-12-23 06:15:47 +00:00
Add GitHub to FederationDomain IdP ListerFinder
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user