oauthgomonday

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL