Documentation ¶
Index ¶
Constants ¶
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 ( AboutPath = "/about" AccountCallbackPath = "/auth/callback" ErrorPath = "/error" ExternalIDPPath = "/external-idp" ForgotPasswordPath = "/forgot-password" HealthzPath = "/healthz" HomePath = "/" LoginPath = "/login" LogoutPath = "/logout" StaticPath = "/static*" //OAuth2CallbackPath = "/oauth2/callback" OAuth2CallbackPath = "@@OAuth2CallbackPath@@" 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
var GithubScopes = []string{"user:email"}
Functions ¶
func GetGithubConfig ¶
func GetGithubConfig(c echo.Context, protocol *proto_oidc_models.GithubOAuth2Protocol) *oauth2.Config
func GetMyRootPath ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.