Documentation
¶
Index ¶
Constants ¶
View Source
const CheckSql = "SELECT id,remark from appusers a where a.IsDeleted = 0 and a.AppKey = ?"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthGroutRoute ¶ added in v0.0.8
func NewRouterRequiredAuth ¶ added in v0.0.8
func NewRouterRequiredAuth(group *gin.RouterGroup, auth *AuthService) AuthGroutRoute
type AuthService ¶
type AuthService struct {
Db *gorm.DB
SQL string
Keys []string
// contains filtered or unexported fields
}
func (*AuthService) Auth ¶
func (a *AuthService) Auth(c *gin.Context)
type AuthServiceParam ¶ added in v0.0.8
type KeycloakConfig ¶ added in v0.1.5
type KeycloakConfig struct {
DefaultRoles []string
BuildConfig ginkeycloak.BuilderConfig
}
func NewKeycloakConfig ¶ added in v0.1.5
func NewKeycloakConfig(logger *zap.Logger) *KeycloakConfig
func (*KeycloakConfig) Auth ¶ added in v0.1.5
func (kc *KeycloakConfig) Auth(roles ...string) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.