authtypes

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: AGPL-3.0 Imports: 0 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

Index

Constants

View Source
const (
	LoginTypePassword           = "m.login.password"
	LoginTypeDummy              = "m.login.dummy"
	LoginTypeSharedSecret       = "org.matrix.login.shared_secret"
	LoginTypeRecaptcha          = "m.login.recaptcha"
	LoginTypeApplicationService = "m.login.application_service"
	LoginTypeToken              = "m.login.token"
)

The relevant login types implemented in Dendrite

Variables

This section is empty.

Functions

This section is empty.

Types

type Flow

type Flow struct {
	Stages []LoginType `json:"stages"`
}

Flow represents one possible way that the client can authenticate a request. https://matrix.org/docs/spec/client_server/r0.3.0.html#user-interactive-authentication-api

type FullyQualifiedProfile

type FullyQualifiedProfile struct {
	UserID      string `json:"user_id"`
	DisplayName string `json:"display_name"`
	AvatarURL   string `json:"avatar_url"`
}

FullyQualifiedProfile represents the profile for a Matrix account.

type Membership

type Membership struct {
	Localpart string
	RoomID    string
	EventID   string
}

Membership represents the relationship between a user and a room they're a member of

type Profile

type Profile struct {
	Localpart   string `json:"local_part"`
	ServerName  string `json:"server_name,omitempty"` // NOTSPEC: only set by Pinecone user provider
	DisplayName string `json:"display_name"`
	AvatarURL   string `json:"avatar_url"`
}

Profile represents the profile for a Matrix account.

type ThreePID

type ThreePID struct {
	Address     string `json:"address"`
	Medium      string `json:"medium"`
	AddedAt     int64  `json:"added_at"`
	ValidatedAt int64  `json:"validated_at"`
}

ThreePID represents a third-party identifier

Jump to

Keyboard shortcuts

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