password

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: 8 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 password signs in with a Moodle username and password.

It only works for accounts Moodle authenticates itself. An account behind SSO cannot use it: the identity provider, not Moodle, holds the password.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientFactory

type ClientFactory func(target site.Site) *moodle.Client

ClientFactory builds a transport client for a site.

type Method

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

Method signs in with a username and password.

func New

func New(newClient ClientFactory, readPassword func() (string, error)) *Method

New builds the method.

func (*Method) Authenticate

func (m *Method) Authenticate(ctx 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

Jump to

Keyboard shortcuts

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