Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(SessionListingService), "*"), )
Functions ¶
This section is empty.
Types ¶
type IDPSessionProvider ¶
type IDPSessionProvider interface {
CheckSessionExpired(session *idpsession.IDPSession) (expired bool)
}
type OfflineGrantService ¶
type Session ¶
type Session struct {
*model.Session
// IsDevice has a different meaning for IDP session and offline grant
// For IDP session, IsDevice is true only if it has active sso enabled offline grant.
// So it may change.
// All offline grant's IsDevice is true.
IsDevice bool `json:"-"`
// IsCurrent indicates if the session is current session
IsCurrent bool `json:"-"`
}
Session in the sessionlisting package wrapped the model.Session to provide extra information for internal display
type SessionListingService ¶
type SessionListingService struct {
OAuthConfig *config.OAuthConfig
IDPSessions IDPSessionProvider
OfflineGrants OfflineGrantService
}
func (*SessionListingService) FilterForDisplay ¶
func (s *SessionListingService) FilterForDisplay(ctx context.Context, sessions []session.ListableSession, currentSession session.ResolvedSession) ([]*Session, error)
Click to show internal directories.
Click to hide internal directories.