auth

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PlatformAuthClientID     = "DRivsnm2Mu42T3KOpqdtwB3NYviHYzwD"
	PlatformAuth0Client      = "eyJuYW1lIjoiYXV0aDAtc3BhLWpzIiwidmVyc2lvbiI6IjEuMjEuMCJ9"
	PlatformAuthAudience     = "https://api.openai.com/v1"
	PlatformAuthRedirectURL  = "https://platform.openai.com/auth/callback"
	PlatformAuthScope        = "openid email profile offline_access model.request model.read organization.read organization.write"
	PlatformAuthResponseType = "code"
	PlatformAuthGrantType    = "authorization_code"
	PlatformAuth0Url         = "https://auth0.openai.com/authorize?"
	PlatformAuth0LogoutUrl   = "" /* 201-byte string literal not displayed */
	DashboardLoginUrl        = "https://api.openai.com/dashboard/onboarding/login"
)
View Source
var (
	ChatGPTUrlPrefix    = "https://chat.openai.com"
	CsrfUrl             = "https://chat.openai.com/api/auth/csrf"
	PromptLoginUrl      = "https://chat.openai.com/api/auth/signin/auth0?prompt=login"
	Auth0Url            = "https://auth0.openai.com"
	LoginUsernameUrl    = "https://auth0.openai.com/u/login/identifier?state="
	LoginPasswordUrl    = "https://auth0.openai.com/u/login/password?state="
	AuthSessionUrl      = "https://chat.openai.com/api/auth/session"
	OauthTokenUrl       = "https://auth0.openai.com/oauth/token"
	OauthTokenRevokeUrl = "https://auth0.openai.com/oauth/revoke"
)

Functions

func DoPlatformRefresh

func DoPlatformRefresh() func(*fhblade.Context) error

token refresh

func DoPlatformRevoke

func DoPlatformRevoke() func(*fhblade.Context) error

refresh token revoke

func DoPlatformSession

func DoPlatformSession() func(*fhblade.Context) error

session

func DoPlatformTks

func DoPlatformTks() func(*fhblade.Context) error

token and session

func DoPlatformToken

func DoPlatformToken() func(*fhblade.Context) error

token

func DoWeb

func DoWeb() func(*fhblade.Context) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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