Documentation
¶
Index ¶
- func AssertRouteAccess(t *testing.T, register func(api *echo.Group), principals []Principal, ...)
- type Principal
- type Realm
- func (r *Realm) ClientRoles(client string) []string
- func (r *Realm) ServiceAccountClaims(t *testing.T, clientID string) *middleware.ExtendedClaims
- func (r *Realm) ServiceAccountPrincipal(t *testing.T, clientID string) Principal
- func (r *Realm) UserClaims(subject string, realmRoles ...string) *middleware.ExtendedClaims
- func (r *Realm) UserPrincipal(realmRoles ...string) Principal
- type RouteAccess
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertRouteAccess ¶
Types ¶
type Principal ¶
type Principal struct {
Name string
Claims *middleware.ExtendedClaims
}
type Realm ¶
type Realm struct {
// contains filtered or unexported fields
}
func (*Realm) ClientRoles ¶
func (*Realm) ServiceAccountClaims ¶
func (r *Realm) ServiceAccountClaims(t *testing.T, clientID string) *middleware.ExtendedClaims
func (*Realm) ServiceAccountPrincipal ¶
func (*Realm) UserClaims ¶
func (r *Realm) UserClaims(subject string, realmRoles ...string) *middleware.ExtendedClaims
func (*Realm) UserPrincipal ¶
type RouteAccess ¶
Click to show internal directories.
Click to hide internal directories.