#login #register #native #fetch #command #client #account

ic-core-module

Native client for interacting with IntelCache

1 stable release

1.0.0 Mar 4, 2022

#972 in Authentication

GPL-3.0 license

12KB
293 lines

The CORE module deals with accounts

Commands

  • CORE LOGIN <GLOBAL ID> <PASSWORD>

The password must be hashed with sha512

Returns the cookie for the session in the header if valid.

  • CORE REGISTER <USERNAME> <PASSWORD>

The password must be hashed with sha512

Returns OK! in the header if successfull

  • CORE FETCH USERS <USERNAME>

Returns GlOBAL IDs from the given username (in the body), and UNIQUE or MULTIPLE in the header if found.

  • CORE NULL

(Deprecated) used as heartbeat/alive signals to the server. It will return an empty response if connected.

Dependencies

~22–34MB
~614K SLoC