Documentation ¶
Index ¶
- func AppHandler() gin.HandlerFunc
- func AuthorizeHandler() gin.HandlerFunc
- func DashboardHandler() gin.HandlerFunc
- func GraphqlHandler() gin.HandlerFunc
- func HealthHandler() gin.HandlerFunc
- func JWKsHandler() gin.HandlerFunc
- func LogoutHandler() gin.HandlerFunc
- func OAuthCallbackHandler() gin.HandlerFunc
- func OAuthLoginHandler() gin.HandlerFunc
- func OpenIDConfigurationHandler() gin.HandlerFunc
- func PlaygroundHandler() gin.HandlerFunc
- func RevokeRefreshTokenHandler() gin.HandlerFunc
- func RootHandler() gin.HandlerFunc
- func TokenHandler() gin.HandlerFunc
- func UserInfoHandler() gin.HandlerFunc
- func VerifyEmailHandler() gin.HandlerFunc
- type AppleUserInfo
- type RequestBody
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeHandler ¶
func AuthorizeHandler() gin.HandlerFunc
AuthorizeHandler is the handler for the /authorize route required params ?redirect_uri = redirect url ?response_mode = to decide if result should be html or re-direct state[recommended] = to prevent CSRF attack (for authorizer its compulsory) code_challenge = to prevent CSRF attack code_challenge_method = to prevent CSRF attack [only sh256 is supported]
func DashboardHandler ¶
func DashboardHandler() gin.HandlerFunc
DashboardHandler is the handler for the /dashboard route
func GraphqlHandler ¶
func GraphqlHandler() gin.HandlerFunc
GraphqlHandler is the main handler that handels all the graphql requests
func HealthHandler ¶
func HealthHandler() gin.HandlerFunc
HealthHandler is the handler for /health route. It states if server is in healthy state or not
func JWKsHandler ¶
func JWKsHandler() gin.HandlerFunc
func OAuthCallbackHandler ¶
func OAuthCallbackHandler() gin.HandlerFunc
func OAuthLoginHandler ¶
func OAuthLoginHandler() gin.HandlerFunc
OAuthLoginHandler set host in the oauth state that is useful for redirecting to oauth_callback
func OpenIDConfigurationHandler ¶
func OpenIDConfigurationHandler() gin.HandlerFunc
OpenIDConfigurationHandler handler for open-id configurations
func PlaygroundHandler ¶
func PlaygroundHandler() gin.HandlerFunc
PlaygroundHandler is the handler for the /playground route
func RevokeRefreshTokenHandler ¶
func RevokeRefreshTokenHandler() gin.HandlerFunc
RevokeRefreshTokenHandler handler to revoke refresh token
func TokenHandler ¶
func TokenHandler() gin.HandlerFunc
TokenHandler to handle /oauth/token requests grant type required
func UserInfoHandler ¶
func UserInfoHandler() gin.HandlerFunc
func VerifyEmailHandler ¶
func VerifyEmailHandler() gin.HandlerFunc
VerifyEmailHandler handles the verify email route. It verifies email based on JWT token in query string
Types ¶
type AppleUserInfo ¶
type AppleUserInfo struct { Email string `json:"email"` Name struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` } `json:"name"` }
OAuthCallbackHandler handles the OAuth callback for various oauth providers
type RequestBody ¶
type RequestBody struct { CodeVerifier string `form:"code_verifier" json:"code_verifier"` Code string `form:"code" json:"code"` ClientID string `form:"client_id" json:"client_id"` ClientSecret string `form:"client_secret" json:"client_secret"` GrantType string `form:"grant_type" json:"grant_type"` RefreshToken string `form:"refresh_token" json:"refresh_token"` RedirectURI string `form:"redirect_uri" json:"redirect_uri"` }