FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. sandesh
    3. Posts
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 7
    • Posts 15
    • Best 3
    • Controversial 0
    • Groups 0

    Posts made by sandesh

    • Proxy Configuration Warning

      Any idea how this can be resolved ?

      13c4cc63-c5fd-4079-ad4d-ac72fc352941-Screenshot from 2023-09-21 15-46-33.png

      posted in Q&A
      S
      sandesh
    • RE: Membership Data

      @mark-robustelli Thank you Mark..! I will keep in mind.

      posted in Q&A
      S
      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"
      }
      ]
      }
      }

      eb3bc4e7-ed55-4cb1-85b3-98919142845e-Screenshot from 2023-08-24 09-10-07.png file:///home/sandesh/Pictures/Screenshots/Screenshot%20from%202023-08-24%2009-10-07.png

      posted in Q&A
      S
      sandesh
    • RE: Add User to group not working

      There were extra spaces in the URL after member in .../api/group/member___. Issue is resolved.

      posted in Q&A
      S
      sandesh
    • 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": []
      }

      posted in Q&A group addusertogroup
      S
      sandesh
    • Membership Data

      Currently I am using membership.data field for some purpose. Want to know if this is a bug or functionality of FusionAuth.

      1. I set a field of "accountId", while creating new group.
        2d85da8e-b5be-44fd-afc5-5586f02680c2-image.png

      2. 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
        } ],

      3. 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.

      posted in Q&A
      S
      sandesh
    • 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
      } ],

      posted in Q&A
      S
      sandesh
    • 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.

      posted in Q&A
      S
      sandesh
    • RE: CORS error while importing Users

      @dan I tried using javascript when tried using POSTMAN, it is working fine. We can close this ticket.

      posted in Q&A
      S
      sandesh
    • 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"
      }
      ]}

      posted in Q&A
      S
      sandesh
    • 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": []
      }
      ]}

      posted in Q&A
      S
      sandesh
    • 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.
      Screenshot from 2023-07-27 08-58-24.png

      posted in Q&A
      S
      sandesh
    • 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?

      Screenshot from 2023-07-26 14-22-19.png

      Also, check the below images for further reference -
      callApiWithJsonData(...) -> Where actual call is happening ...
      convertFirebaseToFusion --> Reference for User Data structure

      Screenshot from 2023-07-26 14-34-14.png

      posted in Q&A
      S
      sandesh
    • 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

      posted in Q&A
      S
      sandesh
    • 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.

      cf530a6a-62c4-4bf7-a67a-4615c0405d0d-Screenshot from 2023-06-15 21-52-18.png /home/sandesh/Pictures/Screenshots/Screenshot from 2023-06-15 21-52-18.png

      posted in Q&A
      S
      sandesh