12345678910111213141516171819202122232425262728293031323334 |
- package sso
- type RegisteredUpstreamApp struct {
- ID string
- Secret string
- Domain []string
- Scopes []string
- SessionDuration int
- }
- func (s *SSOHandler) ListRegisteredApps() []*RegisteredUpstreamApp {
- apps := make([]*RegisteredUpstreamApp, 0)
- for _, app := range s.Apps {
- apps = append(apps, &app)
- }
- return apps
- }
- func (s *SSOHandler) GetAppByID(appID string) (*RegisteredUpstreamApp, bool) {
- app, ok := s.Apps[appID]
- return &app, ok
- }
|