MCPcopy Create free account
hub / github.com/gogs/gogs / Authenticate

Method Authenticate

internal/auth/auth.go:81–81  ·  view source on GitHub ↗

Authenticate performs authentication against an external identity provider using given credentials and returns queried information of the external account.

(login, password string)

Source from the content-addressed store, hash-verified

79 // Authenticate performs authentication against an external identity provider
80 // using given credentials and returns queried information of the external account.
81 Authenticate(login, password string) (*ExternalAccount, error)
82
83 // Config returns the underlying configuration of the authenticate provider.
84 Config() any

Callers 9

AuthenticateMethod · 0.65
usersAuthenticateFunction · 0.65
doAuthMethod · 0.65
AuthenticateUserMethod · 0.65
AuthenticateUserMethod · 0.65
LoginPostFunction · 0.65
SettingsDeleteFunction · 0.65
SettingsDeleteFunction · 0.65
AuthenticateUserMethod · 0.65

Implementers 5

MockProviderinternal/database/mocks_gen.go
Providerinternal/auth/github/provider.go
Providerinternal/auth/smtp/provider.go
Providerinternal/auth/ldap/provider.go
Providerinternal/auth/pam/provider.go

Calls

no outgoing calls

Tested by 1

usersAuthenticateFunction · 0.52