echo

package
v1.0.1-herb-namespaced... Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AboutPath                                        = "/about"
	AccountCallbackPath                              = "/auth/callback"
	ErrorPath                                        = "/error"
	ExternalIDPPath                                  = "/external-idp"
	ForgotPasswordPath                               = "/forgot-password"
	HealthzPath                                      = "/healthz"
	HomePath                                         = "/"
	LoginPath                                        = "/login"
	LogoutPath                                       = "/logout"
	OAuth2CallbackPath                               = "/oauth2/callback"
	OAuth2TokenEndpointPath                          = "/token"
	OIDCAuthorizationEndpointPath                    = "/oidc/v1/auth"
	OIDCLoginPath                                    = "/oidc-login"
	OIDCLoginPasswordPath                            = "/oidc-login-password"
	PasswordResetPath                                = "/password-reset"
	ProfilePath                                      = "/profile"
	PersonalInformationPath                          = "/profile/personal-information"
	ReadyPath                                        = "/ready"
	SignupPath                                       = "/signup"
	SwaggerPath                                      = "/swagger/*"
	UserInfoPath                                     = "/v1/userinfo"
	VerifyCodePath                                   = "/verify-code"
	WellKnownJWKS                                    = "/.well-known/jwks"
	WellKnownOpenIDCOnfiguationPath                  = "/.well-known/openid-configuration"
	WebAuthN_Register_GetCredentialCreationOptions   = "/webauthn/register/get_credential_creation_options"
	WebAuthN_Register_ProcessRegistrationAttestation = "/webauthn/register/process_registration_attestation"
	WebAuthN_Login_GetCredentialRequestOptions       = "/webauthn/login/get_credential_request_options"
	WebAuthN_Login_ProcessLoginAssertion             = "/webauthn/login/process_login_assertion"
)
View Source
const (
	// https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#1-request-a-users-github-identity
	GithubAuthURL = "https://github.com/login/oauth/authorize"
	// https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#2-users-are-redirected-back-to-your-site-by-github
	GithubTokenURL         = "https://github.com/login/oauth/access_token"
	GithubUserInfoEndpoint = "https://api.github.com/user"
	GitHubEmailsEndpoint   = "https://api.github.com/user/emails"
)

Variables

View Source
var GithubScopes = []string{"user:email"}

Functions

func GetMyRootPath

func GetMyRootPath(c echo.Context) string

Types

type Paths

type Paths struct {
	About               string
	ExternalIDP         string
	Home                string
	Login               string
	Logout              string
	PersonalInformation string
	Profile             string
	OIDCLogin           string
	OIDCLoginPassword   string
	Signup              string
	ForgotPassword      string
	VerifyCode          string
	PasswordReset       string
}

func NewPaths

func NewPaths() *Paths

Jump to

Keyboard shortcuts

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