httpsso

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package httpsso is the HTTP side of the sso engine that does not depend on the host: reading what a provider's callback carries and sending the browser back to the app. The host keeps its routes, its error envelope and its rate limits; each of its handlers parses a request, calls one Engine method and writes the Outcome with the helpers here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Callback

func Callback(r *http.Request, scope, provider string) (in sso.CallbackInput, ok bool)

Callback reads a provider's callback (a GET with the query, or Apple's form POST). ok is false when the request can't be read at all.

func Redirect

func Redirect(w http.ResponseWriter, r *http.Request, to string, params ...string) bool

Redirect sends the browser to the app's redirect_to (checked when the attempt began) with the given query parameters added (name, value, name, value…). It returns false when to is not a URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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