Hi,
Your question is making me realize that the "Add User" button on the members and groups page should be removed (It can be useful for development, but not for end users).
Here's how identity and accounts work for Spokes :
Spokes always operates behind an openID identity provider. For example : Casdoor, Authelia, Authentik, Keycloak, etc...
Spokes never handles logins. Logins are always handled by the identity provider. Here's how it works :
- User types in the Spokes server URL.
- The Spokes server then redirects the user to the identity provider's login page. If using the built in Casdoor instance, this occurs internally at the same URL. If using an external identity provider, the user is redirected to the identity provider's URL.
- Once the loggin is successful, the identity provider redirects the user to Spokes.
- Spokes then looks at the OpenID token returned by the identity provider.
- If the token exists in the Spokes user databese, it logs in this user, if it doesn't exist, it creates a new user.
- When creating a new user, Spokes tries map the first name, the last name and the email provided by the identity provider to the new Spokes user. (I say "try" because it is very possible that those fields are empty on the provider's side.)
Let's take a Spokes instance that uses the built-in Casdoor provider as an example.
Things that are done inside the Casdoor admin dashboard :
- Creating a new user.
- Changing a user's password
- Deleting a user.
- Creating invitations for new users to sign in.
- Anything else that concerns the signup or login process.
Things that are done inside Spokes (Anything done inside Spokes has no incidence on the login process) :
- Changing the user's first and last name.
- Changing the email address displayed in Spokes.
- Changing permissions inside Spokes.
The built-in Casdoor instance admin panel is available to Spokes admin by clicking the "Open Casdoor" button at the top of the members and groups page.
So, to answer your question. You need to create new users inside Casdoor (or let users signup themselves with an invitation code). Users can then edit their profile inside Spokes to display any name they choose.
I hope this clears things up a bit. Please feel free to ask more questions.
PS : Sorry for the wall of text, I will turn this into a proper documentation page in the future. For now, this page : https://spokes.sh/information/built-in-identity/ has a bit more information into the technical side of things.