Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Oauth ¶
type Oauth interface {
GetConfig() OauthConfig
Code2Token(code string) (resultCode int32, result *OauthTokenRespData, err error)
RefreshAccessToken(rt string) (resultCode int32, result *OauthTokenRespData, err error)
}
type OauthConfig ¶
type OauthConfig struct {
ClientId string `json:",default=client_id"`
ClientSecret string `json:",default=client_secret"`
Issuer string `json:",default=https://idp.xx.com"`
RedirectUrl string `json:",default=https://app.xx.com/oauth/callback"`
AuthorizeUrl string `json:",default=/oauth/authorize"`
TokenUrl string `json:",default=/oauth/token"`
RevokeUrl string `json:",default=/oauth/revoke"`
IntrospectUrl string `json:",default=/oauth/introspect"`
}
type OauthRefreshTokenReq ¶
type OauthRevokeResp ¶
type OauthTokenReq ¶
type OauthTokenResp ¶
type OauthTokenResp struct {
Code int32 `json:"code"`
Msg string `json:"msg"`
Path string `json:"path"`
RequestId string `json:"request_id"`
Data OauthTokenRespData `json:"data"`
}
type OauthTokenRespData ¶
Click to show internal directories.
Click to hide internal directories.