Documentation
¶
Overview ¶
Package signapi implements the v1 HTTP API: login, certificate signing and CA key management. Login state is carried between requests in short-lived HS256 JWTs that embed the AuthContext.
Index ¶
- Constants
- Variables
- type AuthenticatorListEntry
- type SignAPI
- func (sa *SignAPI) HandleAddKey(c echo.Context) error
- func (sa *SignAPI) HandleAuthCallback(c echo.Context) error
- func (sa *SignAPI) HandleAuthDiscover(c echo.Context) error
- func (sa *SignAPI) HandleCaChallenge(c echo.Context) error
- func (sa *SignAPI) HandleGetKey(c echo.Context) error
- func (sa *SignAPI) HandleLogin(c echo.Context) error
- func (sa *SignAPI) HandleReady(c echo.Context) error
- func (sa *SignAPI) HandleSign(c echo.Context) error
- func (sa *SignAPI) LoginUserPasswordAuthSkipper(c echo.Context) bool
- func (sa *SignAPI) RegisterRoutes(g *echo.Group)
- type SignClaim
Constants ¶
View Source
const (
MaxAuthContextChainLength = 8
)
View Source
const (
TokenLifeSecs = 120
)
Variables ¶
View Source
var Log = logging.GetLogger("signapi").WithField("pkg", "signapi")
Functions ¶
This section is empty.
Types ¶
type AuthenticatorListEntry ¶
type AuthenticatorListEntry struct {
Authenticator auth.Authenticator
Default bool
}
type SignAPI ¶
type SignAPI struct {
// contains filtered or unexported fields
}
func (*SignAPI) LoginUserPasswordAuthSkipper ¶
func (*SignAPI) RegisterRoutes ¶
type SignClaim ¶
type SignClaim struct {
AuthContext *auth.AuthContext
jwt.RegisteredClaims
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.