Versions in this module Expand all Collapse all v0 v0.1.0 Oct 10, 2026 Changes in this version + type InMemoryUser struct + AccountExpired bool + Authorities []GrantedAuthority + CredentialsExpired bool + Disabled bool + Locked bool + Password string + Username string + func (this *InMemoryUser) GetAuthorities() []GrantedAuthority + func (this *InMemoryUser) GetPassword() string + func (this *InMemoryUser) GetUsername() string + func (this *InMemoryUser) IsCredentialExpired() bool + func (this *InMemoryUser) IsDisabled() bool + func (this *InMemoryUser) IsExpired() bool + func (this *InMemoryUser) IsLocked() bool + func (this *InMemoryUser) SetPassword(password string) + type InMemoryUserDetailsManager struct + func (this *InMemoryUserDetailsManager) AddUser(user ManageableUser) + func (this *InMemoryUserDetailsManager) LoadUserByUsername(username string) UserDetails + func (this *InMemoryUserDetailsManager) NewUser() *UserBuilder[*InMemoryUserDetailsManager] + func (this InMemoryUserDetailsManager) New(encoder PasswordEncoder) *InMemoryUserDetailsManager + type ManageableUser interface + SetPassword func(password string) + type MockSecurityAppHandler struct + func NewMockSecurityAppHandler() *MockSecurityAppHandler + func (m *MockSecurityAppHandler) EnableCsrf(skip func(handler SecurityHandler) bool) + func (m *MockSecurityAppHandler) EnableSession(skip func(handler SecurityHandler) bool) + func (m *MockSecurityAppHandler) HasSession(handler SecurityHandler) bool + func (m *MockSecurityAppHandler) PostAuthorizationFilter(_ SecurityHandler) + type MockSecurityHandler struct + CookieJar map[string]*http.Cookie + RenderData map[string]any + RenderedView string + Req *http.Request + Res *httptest.ResponseRecorder + SessionStore map[string]any + Validator *validator.Validate + func NewMockSecurityHandler(method HttpMethod, u *url.URL) *MockSecurityHandler + func NewMockSecurityHandlerWithBody(method HttpMethod, u *url.URL, body []byte) *MockSecurityHandler + func (m *MockSecurityHandler) BindBody(obj any) error + func (m *MockSecurityHandler) Cookie(name string) (*http.Cookie, error) + func (m *MockSecurityHandler) Error(code int, message string) error + func (m *MockSecurityHandler) FormValue(name string) string + func (m *MockSecurityHandler) Header(name string) string + func (m *MockSecurityHandler) Method() string + func (m *MockSecurityHandler) Next() error + func (m *MockSecurityHandler) Path() string + func (m *MockSecurityHandler) Redirect(to string, code int) error + func (m *MockSecurityHandler) RenderView(view string, data map[string]any) error + func (m *MockSecurityHandler) SessionRefresh() + func (m *MockSecurityHandler) SessionReset() + func (m *MockSecurityHandler) SessionValue(key string) any + func (m *MockSecurityHandler) SetCookie(cookie *http.Cookie) + func (m *MockSecurityHandler) SetFormValue(key, value string) + func (m *MockSecurityHandler) SetHeader(name, value string) + func (m *MockSecurityHandler) SetMethod(method HttpMethod) + func (m *MockSecurityHandler) SetSessionValue(key string, obj any) + func (m *MockSecurityHandler) SetURL(u *url.URL) + func (m *MockSecurityHandler) URL() *url.URL + func (m *MockSecurityHandler) Write(p []byte) (n int, err error) + type MockSecurityRouter struct + Middlewares *[]func(SecurityHandler) error + Prefix string + Routes *[]Route + func NewMockSecurityRouter() *MockSecurityRouter + func (m *MockSecurityRouter) Execute(handler *MockSecurityHandler) error + func (m *MockSecurityRouter) Get(path string, handler func(SecurityHandler) error) + func (m *MockSecurityRouter) Group(path string) SecurityRouter + func (m *MockSecurityRouter) Post(path string, handler func(SecurityHandler) error) + func (m *MockSecurityRouter) Use(handler func(SecurityHandler) error) + type Route struct + Handler func(SecurityHandler) error + Method string + Path string + type UserBuilder struct + func (this *UserBuilder[B]) Build() UserDetails + func (this *UserBuilder[B]) SetAccountExpired(expired bool) *UserBuilder[B] + func (this *UserBuilder[B]) SetCredentialsExpired(expired bool) *UserBuilder[B] + func (this *UserBuilder[B]) SetDisabled(disabled bool) *UserBuilder[B] + func (this *UserBuilder[B]) SetLocked(locked bool) *UserBuilder[B] + func (this *UserBuilder[B]) WithAuthorities(authorities []GrantedAuthority) *UserBuilder[B] + func (this *UserBuilder[B]) WithPassword(password string) *UserBuilder[B] + func (this *UserBuilder[B]) WithUsername(username string) *UserBuilder[B] + func (this UserBuilder[B]) New(manager B) *UserBuilder[B] + type UserDetailsManager interface + AddUser func(user ManageableUser)