Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthClient ¶
type AuthClient struct { AuthURI string ClientID string ClientSecret string ServerKey *rsa.PublicKey Secret string }
func (*AuthClient) GetHandler ¶
func (ac *AuthClient) GetHandler() gin.HandlerFunc
func (*AuthClient) GetHandlerForAPI ¶
func (ac *AuthClient) GetHandlerForAPI() gin.HandlerFunc
func (*AuthClient) GetHandlerIntegratedLogin ¶
func (ac *AuthClient) GetHandlerIntegratedLogin() gin.HandlerFunc
func (*AuthClient) RegisterCallbackHandler ¶
func (ac *AuthClient) RegisterCallbackHandler(e *gin.Engine)
func (*AuthClient) RegisterHandler ¶
func (ac *AuthClient) RegisterHandler(e *gin.Engine)
type AuthClientLocalSecret ¶
type AuthClientLocalSecret struct {
LocalSecret string
}
func (*AuthClientLocalSecret) CreateLocalSecret ¶
func (ac *AuthClientLocalSecret) CreateLocalSecret() string
func (*AuthClientLocalSecret) GetHandler ¶
func (ac *AuthClientLocalSecret) GetHandler() gin.HandlerFunc
type AuthRequest ¶
func GetRequest ¶
func GetRequest(id string) (request *AuthRequest)
GetRequest gets an existing AuthRequest by id
func NewRequest ¶
func NewRequest() (request *AuthRequest, err error)
NewRequest creates a new AuthRequest
type AuthServer ¶
type AuthServer struct {
UIPath string
}
func (*AuthServer) Register ¶
func (a *AuthServer) Register(r *gin.Engine)
type ClaimsWithScope ¶
type ClaimsWithScope struct { Scopes []string `json:"scopes,omitempty"` jwt.StandardClaims }
type OauthTokenResponse ¶
type OauthTokenResponse struct {
AccessToken string `json:"access_token"`
}
Click to show internal directories.
Click to hide internal directories.