Any idea how this can be resolved ?
Posts made by sandesh
-
RE: Membership Data
@mark-robustelli You can check the below sample JSON file to add an User assuming you have already added a similar group as mentioned in the first screenshot. You can try adding the data part and removing it. Make sure that the group that you are using has a data field accountId ( or any ) which should reflect in the source tab of User e.g. last screenshot. There could be some understanding issue from my side, please let me know.
{
"user": {
"firstName": "Sandy",
"lastName": "G",
"companyName": "Valo",
"email": "sandesh@asd.com",
"password": "asfasfasd",
"memberships": [
{
"data" : {
"accounId" : "qweqwe"
},
"groupId": "25f7cc16-6746-41bd-9948-1e2397519f7c"
}
]
}
}file:///home/sandesh/Pictures/Screenshots/Screenshot%20from%202023-08-24%2009-10-07.png
-
RE: Add User to group not working
There were extra spaces in the URL after member in .../api/group/member___. Issue is resolved.
-
Add User to group not working
I tried adding user to a group with below data -
I tried with with and without group id parameter.
I am not able to add the user.
Can anyone can please guide me through this ?{
"members": {
"d7955967-5d0b-4001-9325-a7900436b8bc": [
{
"userId": "45e03a95-33fd-45e6-9d2f-0f8f82e7f8cc",
"groupId" : "d7955967-5d0b-4001-9325-a7900436b8bc"
}
]
}
}Output -
{
"fieldErrors": {
"group": [
{
"code": "[missing]group",
"message": "Your request is missing the Group information as JSON in the entity-body."
}
],
"groupId": [
{
"code": "[couldNotConvert]groupId",
"message": "Invalid"
}
]
},
"generalErrors": []
} -
Membership Data
Currently I am using membership.data field for some purpose. Want to know if this is a bug or functionality of FusionAuth.
-
I set a field of "accountId", while creating new group.
-
Later when I link this group to any user, I cannot see the same field in the token as required.
"memberships" : [ {
"data" : { },
"groupId" : "96b633e1-b102-4de8-8e5a-c697e871480d",
"id" : "0f35b49d-2ca9-4273-9ff0-15e5d6081b97",
"insertInstant" : 1691163717381
}, {
"data" : { },
"groupId" : "5d6ccea1-2e90-4fed-8475-5dd7491a5def",
"id" : "fc86e677-7fd9-479b-a494-20c58d824a05",
"insertInstant" : 1692012015554
} ], -
When I populate the same data while creating user, the data is populated as required.
"memberships" : [ {
"data" : {
"accounId" : "qweqwe"
},
"groupId" : "5d6ccea1-2e90-4fed-8475-5dd7491a5def",
"id" : "6a5cde21-5834-43c5-8ad7-30bf4e8fc4c4",
"insertInstant" : 1691940338172
} ],
If this is a bug, any rough idea how much time will it take for resolution.
-
-
Custom data with membership field
I wanted to know if we can pass a custom data with membership field with JWT token.
If yes, can we configure a field from front end like we can do for a User registration page where the field is passed as user.data.fieldName.
Similarly, membership new data will be passed as user.memberships.data.fieldName.
Or
How we can populate the data in below JSON snippet -
"memberships" : [ {
"data" : { },
"groupId" : "dba95e46-3bbf-4b9f-8956-4bddf73097ca",
"id" : "54ec6caa-c335-484e-b062-0aa480745b45",
"insertInstant" : 1691132150760
} ], -
RE: Error in Group creation
@dan I found one more id, can you please let me know what could be the issue with this id - 2k38l9i. I tried removing each letter including 's' and it is giving me Invalid UUID.
-
RE: CORS error while importing Users
@dan I tried using javascript when tried using POSTMAN, it is working fine. We can close this ticket.
-
RE: CORS error while importing Users
Hey @dan , I shared you the pre-processed data, which is incorrect information. Please check the processed data that is used to import the Users.
{
"users":[{
"email":"schneider.jochen@pm.me",
"active":true,
"fullname":"JOchen asadf",
"passwordChangeRequired":true,
"verified":true,
"password":"123123"
},
{
"email":"jochen.odsport@gmail.com",
"active":true,
"fullname":"Jochen fdshgsdhf",
"passwordChangeRequired":true,
"verified":false,
"password":"123123"
}
]} -
RE: CORS error while importing Users
@dan I agree Dan, I saw documentation and decided not to use the scheme and encrypt using default method of Fusionauth. I even tried after removing salt parameter and setting the default password as - 123123. Still facing the same issue. Here are couple of Users which I am trying to migrate -
{"users": [
{
"localId": "14fP6HjVVEMmBphn3gJSF7WPjrY2",
"email": "g.vikas@pm.me",
"emailVerified": true,
"passwordHash": "8VCNbPGEelyjrDM/G51O97rOiQ2/4rTlFMiFy6Wxnw/gUbfBz3No93/stcbunU3/XM+RbCQYq2t7deVXHw8RzQ==",
"salt": "3mES5SUwakkouw==",
"displayName": "vikas asadf",
"lastSignedInAt": "1672216572913",
"createdAt": "1664788494325",
"providerUserInfo": []
},
{
"localId": "b9YMS5fqNeXX2dCcAnxSl1yFAyG3",
"email": "sandesh@pm.com",
"emailVerified": true,
"passwordHash": "DkeD4bCS0awG42rhNty1RfAsQb5DUdVhYo2LNmKgVFGj2bqPKOGTdnRZwigOarslNIM6/0EcAlTpKvc+3o+5bA==",
"salt": "0yCVEp3/yykh/Q==",
"displayName": "Sandesh asdad",
"lastSignedInAt": "1684406569761",
"createdAt": "1671419702169",
"providerUserInfo": []
}
]} -
RE: CORS error while importing Users
Error shown in console is as below -
Unknown scheme, whereas, I want to save the password as default password. There is no reason to ask for Scheme.
-
CORS error while importing Users
Scenario while importing Users from JSON file - after resolving the CORS, getting a response as show below. Would like to know what configuration is suitable for FusionAuth CORS to allow User import to work?
Also, check the below images for further reference -
callApiWithJsonData(...) -> Where actual call is happening ...
convertFirebaseToFusion --> Reference for User Data structure -
Token not received inside Docker with Express JS
After adding a authentication layer between Angular and Express JS, I successfully tested the architecture using the 3 servers i.e. Angular, Express JS and Fusionauth. All are working fine.
When all the setup was moved to docker compose file, I am facing a problem when fusionauth is calling the express JS server - http://localhost:3000/oauth-callback.
Undefined is returned in the body, hence no token is received. As stated earlier, when tried with Express JS as a separate server and not in the docker file ( Angular and Fusionauth in docker-compose and Express JS as a separate server ) , it is working fine.
My question, is there any docker configuration required with Express JS server ?
Docker Configuration of ExpressJS -
fusionexpressjs:
image: fusionexpressjs
ports:
- 3000:3000 -
Error in Group creation
While using a custom id while creating a group, Invalid UUID was thrown for id - 'aiose9-98erjsd-0a9s8duj-ds8sss'. Can someone confirm what could be the issue ? Custom Id is priority and a different group has been created before this and working fine.
/home/sandesh/Pictures/Screenshots/Screenshot from 2023-06-15 21-52-18.png