Ticket #757 (closed Defect: fixed)
"testuser" cannot log in to demo installation anymore
Reported by: | Malte | Owned by: | JuergeN |
---|---|---|---|
Priority: | Blocker | Milestone: | Release 4.5 |
Component: | Demo server (demo.deepamehta.de) | Version: | 4.4 |
Keywords: | Cc: | jri | |
Complexity: | 2 | Area: | Communications |
Module: |
Description
Hi, seems that the password for "testuser" at demo.deepamehta.de changed.
Could one please update the login infos on the website so people can log in and start with "Type Building"? That would be great!
Thanks for your support!
Change History
comment:3 in reply to: ↑ 1 ; follow-up: ↓ 4 Changed 10 years ago by jri
Replying to JuergeN:
actually I haven't changed anything at my end. I would guess that it does not work since the last update of DeepaMehta (4.4.1). The script that creates the user is this one:
# Create user 'testuser' in dm4nightly instance echo -n " Creating testuser ... " curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46' -H 'Cookie: dm4_workspace_id=1797 type_uri: "dm4.accesscontrol.user_account", composite: { dm4.accesscontrol.username: "testuser", dm4.accesscontrol.password: "-SHA256-13d249f2cb4127b40cfa757866850278793f814ded3c587fe5889e889a7a9f6c" } }' http://localhost:8083/core/topic -i # >/dev/null 2>&1. echo "done." echo -e "\n"
We're talking about the 4.4.1 instance running on 8080, right?
Indeed, since 4.4 the request format for creating composite topics has changed: in your POST request you must replace composite by childs.
In 4.5-SNAPSHOT creating user accounts has changed completely. You'll need a different request. Tell me if you need more info.
comment:4 in reply to: ↑ 3 Changed 10 years ago by JuergeN
Replying to jri:
We're talking about the 4.4.1 instance running on 8080, right?
Yes! Sorry for the confusion.
Indeed, since 4.4 the request format for creating composite topics has changed: in your POST request you must replace composite by childs.
Thank you! That fixed it.
In 4.5-SNAPSHOT creating user accounts has changed completely. You'll need a different request. Tell me if you need more info.
Yes, please tell me how I can change the admin's password and create a tesuser via curl script in 4.5.
comment:5 Changed 10 years ago by jri
In DM 4.5 (upcoming) you can create a user account this way:
curl -X POST -H 'Content-Type: application/json' -H 'Authorization: Basic YWRtaW46' -d '{ username: "testuser", password: "-SHA256-13d249f2cb4127b40cfa757866850278793f814ded3c587fe5889e889a7a9f6c" }' localhost:8080/accesscontrol/user_account
This ...
- creates an user account
- creates the user's private workspace
- creates an empty ("untitled") topicmap and assigns it to the private workspace
- assigns the User Account and Password topics to the private workspace and the Username topic to the System workspace
You see a lot more things are performed in 4.5. That's why the former request doesn't work anymore in 4.5 (it just creates a generic topic via Core service). The 4.5 request is more concise now. The workspace cookie is not necessary anymore.
Tell me if you need any help.
Hi Malte,
actually I haven't changed anything at my end. I would guess that it does not work since the last update of DeepaMehta (4.4.1). The script that creates the user is this one:
When I execute it there are errors.
The log says 1797 would be an association. But when you check it https://demo.deepamehta.de/core/topic/1797 it is of course the workspace.
I guess I am missing something here ...
Can you help me?