MCPcopy Create free account
hub / github.com/daodst/chat / LoginFromJSON

Method LoginFromJSON

clientapi/auth/user_interactive.go:46–46  ·  view source on GitHub ↗

Login with the auth type, returning an error response on failure. Not all types support login, only m.login.password and m.login.token See https://matrix.org/docs/spec/client_server/r0.6.1#post-matrix-client-r0-login This function will be called when doing login and when doing 'sudo' style actions e

(ctx context.Context, reqBytes []byte)

Source from the content-addressed store, hash-verified

44 // The returned cleanup function must be non-nil on success, and will be called after
45 // authorization has been completed. Its argument is the final result of authorization.
46 LoginFromJSON(ctx context.Context, reqBytes []byte) (login *Login, cleanup LoginCleanupFunc, errRes *util.JSONResponse)
47 // TODO: Extend to support Register() flow
48 // Register(ctx context.Context, sessionID string, req interface{})
49}

Callers 2

LoginFromJSONReaderFunction · 0.95
VerifyMethod · 0.65

Implementers 5

LoginTypeCosmosclientapi/auth/xs_cosmos_sign_auth.go
LoginTypeJwtclientapi/auth/xs_jwt_auth.go
LoginTypePasswordclientapi/auth/password.go
LoginTypeXsclientapi/auth/xs_blockchain_sign_auth
LoginTypeTokenclientapi/auth/login_token.go

Calls

no outgoing calls

Tested by

no test coverage detected