-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowed characters in username of User #1573
Comments
For example:
Result:
|
@subotic : As long as we can create users via knora api whose usernames includes special characters, does it means that it is a bug in the admin road answer ? If it is not a bug, then the creation of such usernames should be prevented. It would also means that all the users (around 200) we will have to migrate won't be able to use Knora app (unless we decide to change their usernames by removing all characters that Knora app doesn't like) BTW: this issue is related to Lumieres.Lausanne release which is high priority for us. |
@subotic, what do you think about it? Do you think a username could use some special characters? |
@gfoo Here is the regex for checking @mrivoal There are two reasons, why
In your case, you could take the part before the |
In our app I don't use Anyway, we have to fix our migrated usernames on the fly. But there is still a problem, I was able to create a user with |
That is perfect. You can use whatever suits you. What I meant is that the |
Yes, that's true. We want to use — as @subotic said — In the "create-user-form" we use the regex as described above to avoid unwanted characters. For the app login we use the common placeholder |
The GUI can show any available information. Any security concerns will need to be addressed in the
This will only work if the username can be clearly distinguished from the email, because of the login API. @gfoo Thanks for the bug report on |
Yes, I know. The only concern is about eMail-address. But we don't have to display it.
In the user profile is not so much information. It's not so interesting to display name and username. Probably the project membership, yes. We will think about the activation of public user profile in the app. |
is there any rules about the value of the
username
property of aUser
?We have many users to migrate from a DB into Knora and many of them have used their email as
username
. It produces some troubles with knora admin API.For example a call to
http://localhost:3333/admin/users/username/[email protected]
return this error:{"error":"org.knora.webapi.BadRequestException: Invalid username Some([email protected])"}
I identified some problematic characters like
-
or@
.The text was updated successfully, but these errors were encountered: