Documentation ¶
Index ¶
- func FilterAccess(username string, authenticated bool, a *token.ResourceActions)
- func GenTokenForUI(username string, service string, scopes []string) (token string, expiresIn int, issuedAt *time.Time, err error)
- func GetResourceActions(scopes []string) []*token.ResourceActions
- func MakeToken(username, service string, access []*token.ResourceActions) (token string, expiresIn int, issuedAt *time.Time, err error)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterAccess ¶
func FilterAccess(username string, authenticated bool, a *token.ResourceActions)
FilterAccess modify the action list in access based on permission determine if the request needs to be authenticated.
func GenTokenForUI ¶
func GenTokenForUI(username string, service string, scopes []string) (token string, expiresIn int, issuedAt *time.Time, err error)
GenTokenForUI is for the UI process to call, so it won't establish a https connection from UI to proxy.
func GetResourceActions ¶
func GetResourceActions(scopes []string) []*token.ResourceActions
GetResourceActions ...
Types ¶
type Handler ¶
type Handler struct {
beego.Controller
}
Handler handles request on /service/token, which is the auth provider for registry.
Click to show internal directories.
Click to hide internal directories.