package
0.0.0-20241025030232-2154053700bb
Repository: https://github.com/cipherblock-chat/chat.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
ExtractAccessToken from a request, or return an error detailing what went wrong.
GenerateAccessToken creates a new access token.
LoginFromJSONReader performs authentication given a login request body reader and some context.
No description provided by the author
VerifyUserFromRequest authenticates the HTTP request, on success returns Device of the requester.
# Variables
No description provided by the author
# Structs
No description provided by the author
Login represents the shared fields used in all forms of login/sudo endpoints.
LoginIdentifier represents identifier types https://matrix.org/docs/spec/client_server/r0.6.1#identifier-types.
LoginTypeCosmos describes how to authenticate with a login token.
LoginTypeToken describes how to authenticate with a login token.
LoginTypePassword implements https://matrix.org/docs/spec/client_server/r0.6.1#password-based.
LoginTypeToken describes how to authenticate with a login token.
LoginTypeXs describes how to authenticate with a login token.
No description provided by the author
UserInteractive checks that the user is who they claim to be, via a UI auth.
# Interfaces
AccountDatabase represents an account database.
DeviceDatabase represents a device database.
Type represents an auth type https://matrix.org/docs/spec/client_server/r0.6.1#authentication-types.
UserInternalAPIForLogin contains the aspects of UserAPI required for logging in.
# Type aliases
No description provided by the author
No description provided by the author