Login

Login allows a user to log into a server running in Server mode. All users that are created within the system have full access to all resources, secrets and services that the server provides.

Logging In The First Time

When running the server for the first time, a temporary admin account with a password of admin will be created.

Run torero login admin from your torero client and then enter admin as the password. You will then be prompted to enter a new password. Follow the rest of the prompts to confirm your password and then log in for the first time.

Admin Creation And Login

flowchart TD subgraph Admin Creation and Login A[Server is started up] --> B[New admin with temp password created] B --> C[Login with temp admin user and password] C --> D[Required to change password] D --> E[Change password] E --> F[Authenticate to server] F --> G[Server generates api key that is passed in grpc calls] end

User Creation with Temp Password

flowchart TD subgraph User Creation with Temp Password H[Another flow is a user is created with temporary flag] --> I[User logs in with the temporary password] I --> J[Required to change password] J --> K[Change password] K --> L[Authenticate to server] L --> M[Server generates api key that is passed in grpc calls] end

Regular User Login

flowchart TD subgraph Regular User Login N[User logs in with password] --> O[Authenticate to server] O --> P[Server generates api key that is passed in grpc calls] end

Resetting The Admin Password

Resetting the admin password requires access to the server instance itself. To reset the password, you will need to simply run torero server --recover-admin-user. This command will prompt you to enter a new password for your admin user if it is already set.