controller

package
v0.0.0-...-f4e07fb Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthController

type AuthController struct {
	Service *service.AuthService
	// contains filtered or unexported fields
}

func (*AuthController) Authorize

func (c *AuthController) Authorize(w http.ResponseWriter, r *http.Request)

/authorize?provider=google&user_id=alice[&scheme=myapp&platform=desktop&challenge=xyz&cacheMode=none]

func (*AuthController) Callback

func (c *AuthController) Callback(w http.ResponseWriter, r *http.Request)

/callback?state=provider:user_id:platform:scheme:cacheMode&code=xxx

func (*AuthController) GetToken

func (c *AuthController) GetToken(w http.ResponseWriter, r *http.Request)

/get_token?provider=google[&user_id=xxx&challenge=yyy]

Jump to

Keyboard shortcuts

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