Module exposing: getOAuth2Client, getOAuth2ClientCredentialsClient, getOAuth2JWTClient, sanitizeOAuth2Scopes, sanitizeOAuth2EndpointParams, OAuth2Options
// Source: https://github.com/grafana/grafana-plugin-sdk-go | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package authclient
import (
"context"
"fmt"
"net/http"
"net/url"
"strings"
"golang.org/x/oauth2"
"golang.org/x/oauth2/clientcredentials"
"golang.org/x/oauth2/jwt"
)
// OAuth2Type defines type of oauth2 grant type
type OAuth2Type string
const (
OAuth2TypeClientCredentials OAuth2Type = "client_credentials"
OAuth2TypeJWT OAuth2Type = "jwt"
)
// OAuth2Options defines options for OAuth2 Client
type OAuth2Options struct {
OAuth2Type OAuth2Type
TokenURL string
Scopes []string
ClientID string
ClientSecret string
EndpointPa
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key