Documentation ¶
Index ¶
- func CacheExtraPermissions()
- func CacheFirecloudAccounts(ctx context.Context) error
- func FakeUserMiddleware() gin.HandlerFunc
- func IapUserMiddleware() gin.HandlerFunc
- func KeepCacheUpdated(ctx context.Context, interval time.Duration)
- type ExtraPermissions
- type FirecloudAccount
- type FirecloudGroupMembership
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CacheExtraPermissions ¶
func CacheExtraPermissions()
func CacheFirecloudAccounts ¶
func FakeUserMiddleware ¶
func FakeUserMiddleware() gin.HandlerFunc
func IapUserMiddleware ¶
func IapUserMiddleware() gin.HandlerFunc
Types ¶
type ExtraPermissions ¶
type ExtraPermissions struct {
Suitable bool `json:"suitable"`
}
type FirecloudAccount ¶
type FirecloudAccount struct { Email string `json:"email"` AcceptedGoogleTerms bool `json:"acceptedGoogleTerms"` EnrolledIn2fa bool `json:"enrolledIn2Fa"` Suspended bool `json:"suspended"` Archived bool `json:"archived"` SuspensionReason string `json:"suspensionReason,omitempty"` Groups *FirecloudGroupMembership `json:"groups"` }
type User ¶
type User struct { AuthenticatedEmail string `json:"authenticatedEmail"` MatchedFirecloudAccount *FirecloudAccount `json:"matchedFirecloudAccount,omitempty"` MatchedExtraPermissions *ExtraPermissions `json:"matchedExtraPermissions,omitempty"` // contains filtered or unexported fields }
func ExtractUserFromContext ¶
ExtractUserFromContext is the counterpart to the middlewares provided by this package: handlers can call it to extract a User from the context.
func (*User) AlphaNumericHyphenatedUsername ¶
func (*User) SuitableOrError ¶
Click to show internal directories.
Click to hide internal directories.