Documentation ¶
Index ¶
- Variables
- type Auth
- type LoginEvent
- type LogoutEvent
- type TokenExtras
- type User
- type UserMapping
- type UserMappingService
- func (ums *UserMappingService) GetMapping(config.Map) (UserMapping, error)
- func (ums *UserMappingService) Inject(config ...)
- func (ums *UserMappingService) MapToUser(claims map[string]interface{}, session *web.Session) *User
- func (ums *UserMappingService) UserFromIDToken(idToken *oidc.IDToken, session *web.Session) (*User, error)
- type UserType
Constants ¶
This section is empty.
Variables ¶
View Source
var Guest = &User{ Name: "Guest", Type: GUEST, }
Guest is our default guest user
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { TokenSource oauth2.TokenSource IDToken *oidc.IDToken }
type TokenExtras ¶
func (*TokenExtras) Add ¶
func (te *TokenExtras) Add(key string, value string)
type User ¶
type User struct { Sub string Name string Email string Salutation string FirstName string LastName string Street string ZipCode string City string DateOfBirth string Country string CustomFields map[string]string Type UserType }
User is a basic authenticated user
type UserMapping ¶
type UserMappingService ¶
type UserMappingService struct {
// contains filtered or unexported fields
}
func (*UserMappingService) GetMapping ¶
func (ums *UserMappingService) GetMapping(config.Map) (UserMapping, error)
func (*UserMappingService) Inject ¶
func (ums *UserMappingService) Inject(config *struct { IdTokenMapping config.Map `inject:"config:auth.mapping.idToken"` })
func (*UserMappingService) MapToUser ¶
func (ums *UserMappingService) MapToUser(claims map[string]interface{}, session *web.Session) *User
func (*UserMappingService) UserFromIDToken ¶
func (ums *UserMappingService) UserFromIDToken(idToken *oidc.IDToken, session *web.Session) (*User, error)
Click to show internal directories.
Click to hide internal directories.