token

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 6 Imported by: 0 modules, 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 token signs in with a web service token the user already holds.

It is the most reliable method and needs nothing from the site, so it is first in the coordinator's order.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Method

type Method struct {
	// contains filtered or unexported fields
}

Method signs in with an existing token.

func New

func New(readHidden ...func() (string, error)) *Method

New builds the method.

func (*Method) Authenticate

func (m *Method) Authenticate(_ context.Context, req auth.Request) (auth.Credential, error)

func (*Method) Describe

func (*Method) Describe() string

func (*Method) Name

func (*Method) Name() string

func (*Method) Probe

Probe always reports available: a token is verified by using it, and the site's configuration says nothing about whether one exists.

Jump to

Keyboard shortcuts

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