Comments (4)
Normally, Keyrock should be setup with Mail Transfer Agent. After registing a new user on UI of Keyrock, a user will receive an email to active an account from Keyrock. Before doing that, a use can not log in keyrock. Probably, when a domain of an email does not found in a whitelist, Keyrock will not send a use to an email. But this topic is not about FIWARE Bing Bang. Please read Keyrock documentation or source code.
from fiware-big-bang.
Merged PR #237
from fiware-big-bang.
usersCreate003 error 400 Bad Request {"error":{"message":"Invalid email","code":400,"title":"Bad Request"}}
This error is a respose from your Keyrock instance. The error message of NGSI Go has a prefix like usersCreate003
. A prefix consists of a Go lang function name and a position in the funciton. In this case, the function name is usersCreate
. The position is 3rd. See here .
Could you try replacing exmaple.com
with your domain?
ubuntu@fi-bb:~$ ngsi users create --host keyrock.letsfiware.jp --username user001 --email [email protected] --password 1234
usersCreate003 error 400 Bad Request {"error":{"message":"Invalid email","code":400,"title":"Bad Request"}}
ubuntu@fi-bb:~$ ngsi users create --host keyrock.letsfiware.jp --username user001 --email [email protected] --password 1234
368401c5-49d6-4624-90ee-e66d0a73d8b3
ubuntu@fi-bb:~$ ngsi users list
368401c5-49d6-4624-90ee-e66d0a73d8b3
admin
If you want to add a user with the example.com
domain, add exmaple.com
to config/keyrock/whitelist.txt
and restart your Keyrock instance. The FIWARE Big bang sets up a Keyrock instance with whitelist
as the email list type. See here.
ubuntu@fi-bb:~$ cat config/keyrock/whitelist.txt
letsfiware.jp
example.com
ubuntu@fi-bb:~$ ngsi users create --username user001 --email [email protected] --password 1234 --host keyrock.letsfiware.jp
4201c1fd-52d3-4bd7-abfd-94319266549e
ubuntu@fi-bb:~$ ngsi users get --uid 4201c1fd-52d3-4bd7-abfd-94319266549e -P
{
"user": {
"scope": [],
"id": "4201c1fd-52d3-4bd7-abfd-94319266549e",
"username": "user001",
"email": "[email protected]",
"enabled": true,
"admin": false,
"image": "default",
"gravatar": false,
"date_password": "2023-01-27T07:50:05.000Z",
"description": null,
"website": null
}
}
from fiware-big-bang.
Thanks a lot!
This indeed works with an email address using the same (sub-) domain that was used for the setup.
To mention whitelist.txt
in this context in the documentation is a good idea. It seems the whitelist does not apply when adding users through the UI. Not sure this is a bug or a feature ;-)
But it may affect self-registration, which also didn't work. Will need to try again.
from fiware-big-bang.
Related Issues (18)
- Domain validation fails when a subdomain name contains an IP address
- "Entity could not be retrieved: HTTP status code: 401" from local-installed Node-Red HOT 4
- Cannot get a http root of a Node-RED instance deploying as multi-instance.
- Unable to log out of Zeppelin.
- Login to Grafana with Keyrock fails
- 401 Unauthorized Error to orion access. HOT 3
- PostgreSQL version update HOT 1
- make get-token fails with special characters in password HOT 3
- lets-fiware.sh script deletes data directory HOT 1
- Update Keyrock and Wilma to 8.4.0 HOT 1
- Update node-red to 3.x HOT 1
- setup_ngsi_go.sh script builder bug. HOT 1
- Platform Upgrade and Domain Migration from Version 0.17 to 0.27 HOT 2
- Unable to login to Grafana as GRAFANA_CLIENT_ID is not generated. HOT 7
- pwgen command not found HOT 2
- Error in obtaining Let's Encrypt certificate HOT 2
- Can't get token from Keyrock HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fiware-big-bang.