verifier

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthResult

type AuthResult struct {
	Code  string
	Email string
}

type AuthenticationProvider

type AuthenticationProvider interface {
	Verify(w http.ResponseWriter, r *http.Request)
	Callback(w http.ResponseWriter, r *http.Request) (*AuthResult, error)
}

func NewGithubProvider

func NewGithubProvider(clientID, clientSecret, organization string) AuthenticationProvider

https://kartusche.netice9.xyz/auth/oauth2/callback

func NewMockProvider

func NewMockProvider() AuthenticationProvider

type UserOrg

type UserOrg struct {
	Login            string `json:"login"`
	ID               int    `json:"id"`
	NodeID           string `json:"node_id"`
	URL              string `json:"url"`
	ReposURL         string `json:"repos_url"`
	EventsURL        string `json:"events_url"`
	HooksURL         string `json:"hooks_url"`
	IssuesURL        string `json:"issues_url"`
	MembersURL       string `json:"members_url"`
	PublicMembersURL string `json:"public_members_url"`
	AvatarURL        string `json:"avatar_url"`
	Description      string `json:"description"`
}

Jump to

Keyboard shortcuts

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