Documentation
¶
Overview ¶
package ldap is an sso implementation. It uses an ldap backend to authenticate and optionally utilize ldap group memberships for setting up roles in the cookie/jwt which can later be used by applications for authorization.
Index ¶
- Variables
- type LdapConfig
- type LdapSSO
- func (ls LdapSSO) Auth(u string, p string) (*string, *[]string, error)
- func (ls LdapSSO) BuildCookie(s string, exp time.Time) http.Cookie
- func (ls LdapSSO) BuildJWTToken(u string, g []string, exp time.Time) (string, error)
- func (ls LdapSSO) CTValidHours() int64
- func (ls LdapSSO) CookieDomain() string
- func (ls LdapSSO) CookieName() string
- func (ls LdapSSO) Logout(expT time.Time) http.Cookie
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUserNotFound = sso.ErrUserNotFound )
View Source
var BaseConf *sso.BaseConfig
View Source
var PrivateKey *rsa.PrivateKey
Functions ¶
This section is empty.
Types ¶
type LdapConfig ¶
type LdapConfig struct {
// contains filtered or unexported fields
}
type LdapSSO ¶
type LdapSSO struct { Cookie *sso.CookieConfig Ldap *LdapConfig }
func NewLdapSSO ¶
func (LdapSSO) BuildJWTToken ¶
func (LdapSSO) CTValidHours ¶
func (LdapSSO) CookieDomain ¶
func (LdapSSO) CookieName ¶
Click to show internal directories.
Click to hide internal directories.