Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Guest = &User{ Name: "Guest", Type: GUEST, }
Guest is our default guest user
View Source
var OAuthRoleUser = domain.StringRole(domain.PermissionAuthorized)
OAuthRoleUser represents basic role for authorized user
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { TokenSource oauth2.TokenSource IDToken *oidc.IDToken }
Auth information
type LoginEvent ¶
LoginEvent for the current session
type LogoutEvent ¶
LogoutEvent for the current session
type TokenExtras ¶
TokenExtras for openID Connect
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 Groups []string }
User is a basic authenticated user Deprecated: use core/auth Identities instead
type UserMappingService ¶
type UserMappingService struct {
// contains filtered or unexported fields
}
UserMappingService maps a user based on data available via the idTokenMapping setting
func (*UserMappingService) Inject ¶
func (ums *UserMappingService) Inject(config *struct { IDTokenMapping config.Map `inject:"config:core.oauth.mapping.idToken"` })
Inject dependencies
func (*UserMappingService) MapToUser ¶
func (ums *UserMappingService) MapToUser(claims map[string]interface{}, session *web.Session) *User
MapToUser returns the user mapped from the claims
func (*UserMappingService) UserFromIDToken ¶
func (ums *UserMappingService) UserFromIDToken(idToken *oidc.IDToken, session *web.Session) (*User, error)
UserFromIDToken returns a user mapped with data from a provided OpenID connect token
Click to show internal directories.
Click to hide internal directories.