Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUserInfo ¶
func GetUserInfo() http.HandlerFunc
GetUserInfo returns an http.HandlerFunc that extracts the access token from the Authorization header and fetches extended user info from Monday.com
func GetUserInfoEndpoint ¶
func GetUserInfoEndpoint() string
GetUserInfoEndpoint returns Monday.com's GraphQL endpoint (/v2) for user info
func NewWithOptions ¶
func NewWithOptions(providerConfig *oauthgotypes.ProviderConfig) (coreprov.OAuthO2IDCProvider, error)
NewWithOptions creates a new Monday.com OAuth2 provider with defaults
Types ¶
type GraphQLRequest ¶
type GraphQLRequest struct {
Query string `json:"query"`
}
GraphQLRequest represents a Monday.com GraphQL request body
type GraphQLResponse ¶
type GraphQLResponse struct {
Data struct {
Me map[string]interface{} `json:"me"`
} `json:"data"`
Errors []map[string]interface{} `json:"errors,omitempty"`
}
GraphQLResponse represents the response from Monday.com GraphQL API
Click to show internal directories.
Click to hide internal directories.