Documentation
¶
Index ¶
- Constants
- func GrantOAuthValidate(w http.ResponseWriter, r *http.Request)
- func InitGrantOAuth(w http.ResponseWriter, r *http.Request)
- func InitOAuth(w http.ResponseWriter, r *http.Request)
- func OAuthCallback(w http.ResponseWriter, r *http.Request)
- func RegisterRoutes(router chi.Router)
- type GrantOAuthUserRequestBody
- type GrantOAuthValidateRequestBody
- type GrantOAuthValidateResponseBody
- type OAuthInitRequestBody
- type OAuthInitResponseBody
Constants ¶
View Source
const ( InitAuthPath = "/oauth/{provider}/init" OAuthCallbackPath = "/oauth/{provider}/callback" OAuthGrantInitPath = "/oauth/grant/{grant}/init" OAuthGrantValidatePath = "/oauth/grant/{grant}/validate" )
Variables ¶
This section is empty.
Functions ¶
func GrantOAuthValidate ¶
func GrantOAuthValidate(w http.ResponseWriter, r *http.Request)
func InitGrantOAuth ¶
func InitGrantOAuth(w http.ResponseWriter, r *http.Request)
func OAuthCallback ¶
func OAuthCallback(w http.ResponseWriter, r *http.Request)
func RegisterRoutes ¶
func RegisterRoutes(router chi.Router)
Types ¶
type OAuthInitRequestBody ¶
type OAuthInitRequestBody struct {
Provider string `json:"provider"`
}
type OAuthInitResponseBody ¶
type OAuthInitResponseBody struct {
RedirectUrl string `json:"redirectUrl"`
}
Click to show internal directories.
Click to hide internal directories.