Documentation ¶
Overview ¶
Package oauth2 handle Authentication with OAuth2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component implement interface component
func (*Component) AttachPrivateAPI ¶
func (component *Component) AttachPrivateAPI(group *gin.RouterGroup)
AttachPrivateAPI link the oauth micro-service with its dependencies to the system
func (*Component) AttachPublicAPI ¶
func (component *Component) AttachPublicAPI(group *gin.RouterGroup)
AttachPublicAPI link the oauth micro-service with its dependencies to the system
type RestInterface ¶
type RestInterface interface { AppAuthorize(c *gin.Context) AppToken(c *gin.Context) AppInfo(c *gin.Context) AppAuthCode(c *gin.Context) AppAuthToken(c *gin.Context) AppAuthPassword(c *gin.Context) AppAuthClientCredentials(c *gin.Context) AppAuthAssertion(c *gin.Context) AppAuthRefresh(c *gin.Context) AppAuthInfo(c *gin.Context) GetAccessTokenOwnerUserId(c *gin.Context) }
RestInterface is the model for the rest package of oauth2
Directories ¶
Path | Synopsis |
---|---|
Package repo implement the function that contact the db required by the service package
|
Package repo implement the function that contact the db required by the service package |
Package rest implement the callback required by the oauth2 package
|
Package rest implement the callback required by the oauth2 package |
Package service implement the services required by the rest package
|
Package service implement the services required by the rest package |
Click to show internal directories.
Click to hide internal directories.