Skip to content

Releases: Samagra-Development/user-service

v2.4.0

20 Feb 13:29
b9978a1
Compare
Choose a tag to compare
  • Validating if user exists in DB or not before sending OTP

v2.3.9

01 Feb 07:57
6022dcb
Compare
Choose a tag to compare

BUG FIX: GET /api/user/:userId fixed for query string error causing wrong user set retrieval

v2.3.8

05 Jan 11:39
ee38540
Compare
Choose a tag to compare

Password reset APIs (OTP based)

Description

APIs added to support password reset for users with phone numbers registered.

Changes

APIs added:

POST /api/changePassword/sendOTP
PATCH /api/changePassword/update
Fusion Auth service cleanup was done.

v2.3.7

28 Dec 12:13
0153d1d
Compare
Choose a tag to compare
  • GET /health API
  • Strict check to validate if user's registration exists for the given application in in /user/login & /api/login endpoints

v2.3.6 - User change account status (activate/deactivate)

30 Nov 11:13
b99f49c
Compare
Choose a tag to compare

Description

Added APIs to activate/deactivate user. (#43 )

Changes

  • PATCH admin/user/:userId/activate
  • PATCH admin/user/:userId/deactivate
  • PATCH api/user/:userId/activate
  • PATCH api/user/:userId/deactivate

v2.3.5

25 Nov 06:21
6e1cdd7
Compare
Choose a tag to compare

Dynamic applications search support in admin search APIs

v2.3.4

10 Nov 05:54
9211815
Compare
Choose a tag to compare

fixes & improvements.

v2.3.3

10 Nov 05:10
771a34e
Compare
Choose a tag to compare

Description

User create: added support for Hasura mutations sync
Login: added support for HP Admin console application

v2.3.2

09 Nov 09:42
5f8f037
Compare
Choose a tag to compare

Description

Allowing different roles for Admin Console application.

Changes

Following roles added for role based access:

  • State Admin
  • District Admin
  • Block Admin
  • School Admin

v2.3.1

07 Nov 08:10
1231c0f
Compare
Choose a tag to compare

Description

This PR brings the enhancement to allow updating user's registration details along with support for updating 3rd party Hasura via config driven approach

Changes

  • User's registration object can be patched
  • 3rd party Hasura tables can be updated via config driven approach
  1. PATCH /admin/updateUser/:userId now accepts a registrations array in the request body:
    ...
    "registrations": [
        {
            "applicationId": "xxxx",
            "roles": [
                "role 1",
                "role 2",
                "role nl"
            ],
            "data": {
                ...
            }
        }
    ],
    ...

Checkout more on Fusion Auth docs, what all details can be passed in the array object: https://fusionauth.io/docs/v1/tech/apis/registrations#update-a-user-registration

  1. PATCH /admin/updateUser/:userId now accepts another array named hasuraMutations in the request body:
    ...
    "hasuraMutations": [
        {
            "applicationId": "xxxx",
            "mutation": "pre-defined mutation identifier as configured via generic API approach in `.env` file",
            "payload": {
                // payload needed by mutation
            }
        }
    ],
    ...

Generic config in the .env file can be added like the example below:

APP_application_id_uuid='{
  "host": "${FUSIONAUTH_BASE_URL}",
  "hasura": {
    "graphql_url": "http://example.com/v1/graphql",
    "admin_secret": "my-hasura-admin-secret",
    "mutations": {
      "some-unique-mutation-identifier": "mutation someMutation($id: Int, $someKey: Int) {update_table(where: {id: {_eq: $id}}, _set: {some_key: $someKey}) {returning { id some_key } } }"
    }
  }
}'

Note: the value of the generic key APP_application_id_uuid must be a minified JSON. Example shown above is just for reference.