Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/token based authentication 2 #91

Merged

Conversation

muttaqin1
Copy link
Collaborator

@muttaqin1 muttaqin1 commented Aug 1, 2023

Add token refresh and logout feature.
resolved: #46 , #71

@bellaabdelouahab
Copy link
Member

@muttaqin1 sorry for not paying attention before, but why would you send the refresh token to client ?
isn't suppose to be in server and each time the user tries to login with an out dated token we check if the refresh token still valid, if so then we send a new token

Copy link
Member

@bellaabdelouahab bellaabdelouahab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you consider those changes,
and take a look at this msg

backend-app/controllers/auth_controller.js Outdated Show resolved Hide resolved
backend-app/routes/users/user_route.js Outdated Show resolved Hide resolved
@muttaqin1
Copy link
Collaborator Author

muttaqin1 commented Aug 1, 2023

@muttaqin1 sorry for not paying attention before, but why would you send the refresh token to client ? isn't suppose to be in server and each time the user tries to login with an out dated token we check if the refresh token still valid, if so then we send a new token

By storing the refresh token in server what are you trying to achieve? I haven't seen this kind of implementation yet. So i was not aware about it. I will surely change the feature as you are saying but i want you to have a look at this video once.
@bellaabdelouahab

https://youtu.be/ahDQI7msr0A

@bellaabdelouahab
Copy link
Member

bellaabdelouahab commented Aug 1, 2023

@muttaqin1 sorry for not paying attention before, but why would you send the refresh token to client ? isn't suppose to be in server and each time the user tries to login with an out dated token we check if the refresh token still valid, if so then we send a new token

By storing the refresh token in server what are you trying to achieve? I haven't seen this kind of implementation yet. So i was not aware about it. I will surely change the feature as you are saying but i want you to have a look at this video once. @bellaabdelouahab

https://youtu.be/ahDQI7msr0A

well before I get into details just type this in google : where to store the refresh token key
@muttaqin1

@bellaabdelouahab
Copy link
Member

by storing the refresh token on server side we achieve a secure way to generate an access token with out give user access to refresh token.
i might have confused you but when i said not to send it to client side i meant to not do it like this

{
    "tokens": {
        "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YzkxYmExMWI1NGVmOWUxZTdlNmE4OCIsImlhdCI6MTY5MDkxMTEzNSwiZXhwIjoxNjkwOTk3NTM1fQ.Wxp2HUVLbCsNgVdzI7IDomjlTHgHufKCkYj0xx97M6A",
            "refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY0YzkxYmExMWI1NGVmOWUxZTdlNmE4OCIsImlhdCI6MTY5MDkxMTEzNSwiZXhwIjoxNjkxNTE1OTM1fQ.O6x_fbrwSF7JCt9UnJDBnqxlPm4dByT1kRB9pAV2laY"
    },

but instead when i user sign in we store the refresh token on httpOnly cookie
this way the client side wont have access to the refresh token and also since the backend and front end will share the same server we can add same site flag to limit the csrf attacks
@muttaqin1

@muttaqin1
Copy link
Collaborator Author

muttaqin1 commented Aug 1, 2023

The frontend app receives the refresh token and the refresh token is stored in a secured cookie.(Rest client-server)
Whenever the client need to send the refresh token it takes the token from the cookie and send it to the server.
But definitely we can directly store the token in the secured cookie.I was confused a bit.
@bellaabdelouahab

@bellaabdelouahab
Copy link
Member

bellaabdelouahab commented Aug 1, 2023

The frontend app receives the refresh token and the refresh token is stored in a secured cookie.(Rest client-server) Whenever the client need to send the refresh token it takes the token from the cookie and send it to the server. But definitely we can directly store the token in the secured cookie.I was confused a bit. @bellaabdelouahab

if you store it in the cookie it can be accessed by any user or xss attacks but if we use httponly cookie along with same site cors policy we can securely generate access token without the refresh token being compromised

@muttaqin1
Copy link
Collaborator Author

The frontend app receives the refresh token and the refresh token is stored in a secured cookie.(Rest client-server) Whenever the client need to send the refresh token it takes the token from the cookie and send it to the server. But definitely we can directly store the token in the secured cookie.I was confused a bit. @bellaabdelouahab

if you store it in the cookie it can be accessed by any user or ssx attacks but if we use httponly cookie along with same site cors policy we can securely generate access token without the refresh token being compromised

Yes, you are right.
@bellaabdelouahab

@bellaabdelouahab
Copy link
Member

@muttaqin1
and another thing,
i see that in refresh token function you re deleting the hole document ! can you explain why ?
code ref :

if (exists) await TokenModel.findByIdAndDelete(exists._id);

@muttaqin1
Copy link
Collaborator Author

@muttaqin1
and another thing,
i see that in refresh token function you re deleting the hole document ! can you explain why ?
code ref :

if (exists) await TokenModel.findByIdAndDelete(exists._id);

Every time we generate new token we also create a token record. If we dont delete the existing token record when we create new token. There will be duplicate token records which will be a serious issue.
@bellaabdelouahab

@bellaabdelouahab
Copy link
Member

bellaabdelouahab commented Aug 1, 2023

Every time we generate new token we also create a token record. If we dont delete the existing token record when we create new token. There will be duplicate token records which will be a serious issue. @bellaabdelouahab

but why deleting the refresh token tho ?
the refresh token should be deleted only if the user logs out ain't that correct ?
@muttaqin1
and sorry for this hard review 😁😂it's just i have time today to go throw all the code

Copy link
Member

@bellaabdelouahab bellaabdelouahab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've viewed all files i think there is no more comments except the ones I already made

@muttaqin1
Copy link
Collaborator Author

Every time we generate new token we also create a token record. If we dont delete the existing token record when we create new token. There will be duplicate token records which will be a serious issue. @bellaabdelouahab

but why deleting the refresh token tho ?
the refresh token should be deleted only if the user logs out ain't that correct ?
@muttaqin1
and sorry for this hard review 😁😂it's just i have time today to go throw all the code

Okay i will change that. Its good, i want you to do hard reviews😁

@muttaqin1
Copy link
Collaborator Author

Can you test this for me?
@bellaabdelouahab

Copy link
Member

@bellaabdelouahab bellaabdelouahab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i will approve this pr since i will write unit tests for it while it's not big, but on your next pr please make sure to add requested changes

backend-app/utils/authorization/auth_utils.js Show resolved Hide resolved
backend-app/controllers/auth_controller.js Show resolved Hide resolved
backend-app/controllers/auth_controller.js Show resolved Hide resolved
@bellaabdelouahab bellaabdelouahab merged commit 3e0da0c into ISIL-ESTE:dev Aug 10, 2023
@muttaqin1 muttaqin1 deleted the Feat/token-based-authentication-2 branch August 10, 2023 18:20
bellaabdelouahab added a commit that referenced this pull request Aug 10, 2023
bellaabdelouahab added a commit to bellaabdelouahab/S-W-O that referenced this pull request Aug 10, 2023
commit 3e0da0c
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Aug 11 00:13:20 2023 +0600

    Feat/token based authentication 2 (ISIL-ESTE#91)

    * Move .husky to the base dir.

    * Delete eslintrc.json.

    * Resolve ISIL-ESTE#71 & fix import paths for user_model .

    * token refresh & logout.

    * Add utility class auth_utils.

    * Configure cookie parser.

commit d5ff984
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:49:05 2023 +0100

    fix - add logo path to readme (ISIL-ESTE#86)

commit 00c882e
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:47:07 2023 +0100

    fix - eslint json roles -> js (ISIL-ESTE#85)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

    * extra fix

    * fix eslint json -> js

commit f0674fb
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:29:11 2023 +0100

    Update app_config.js (ISIL-ESTE#84)

commit b659237
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:21:01 2023 +0100

    fix - Up date env variables : remove hard coded credentials  (ISIL-ESTE#83)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

commit af609a1
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 10:41:55 2023 +0100

    Creating CONTRIBUTING.md (ISIL-ESTE#79)

commit 9254b1d
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 28 00:10:13 2023 +0600

    Feat/configure pre-commit hook (ISIL-ESTE#81)

    * configure pre-commit hooks.

    * Pre-commit hook test - lint & fix every .js & .json file.

commit fbb1537
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Wed Jul 26 17:47:48 2023 +0100

    fix - rate limiter & duplicated methods & env variables (ISIL-ESTE#74)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

commit c1894bc
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Tue Jul 25 19:59:30 2023 +0100

    add count of closed pr (ISIL-ESTE#76)

commit 8cf1209
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Wed Jul 26 00:38:42 2023 +0600

    Feat - token-based-authentication (ISIL-ESTE#75)

    * Configure linter and formatter.

    * Add configurations for access & refresh token.

    * Add token model.

    * Add functionality to generate Access & refresh token and send it to
    user.

    * save exact version of dev-dependencies.

commit 0140aa1
Author: boujrada yassine <63125972+yassineboujrada@users.noreply.github.com>
Date:   Fri Jul 21 10:44:15 2023 +0100

    Implement Sign Up Component with Next.js (ISIL-ESTE#67)

    * adding a login page but it need a auth

    * adding sign up componenet

commit e2227f9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:46:10 2023 +0100

     dependencies update ISIL-ESTE#69

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19b5bf9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:45:40 2023 +0100

     dependencies update ISIL-ESTE#68

    Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.10.4 to 6.11.3.
    - [Release notes](https://github.com/Automattic/mongoose/releases)
    - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
    - [Commits](Automattic/mongoose@6.10.4...6.11.3)

    ---
    updated-dependencies:
    - dependency-name: mongoose
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c6c6d61
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:44:40 2023 +0100

     dependencies update ISIL-ESTE#65

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit dd8c55a
Merge: e2503a6 9b899d0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:02:36 2023 +0100

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app ISIL-ESTE#64

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app ISIL-ESTE#64

commit e2503a6
Merge: 372d6ce 26702c0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:01:06 2023 +0100

    Github Oauth integration ISIL-ESTE#58

    Github Oauth integration ISIL-ESTE#58

commit 9b899d0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Jul 13 05:00:30 2023 +0000

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

commit 26702c0
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 7 10:12:04 2023 +0600

    Github integration.

commit 372d6ce
Merge: 55be937 92eddd6
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:29:57 2023 +0100

    Merge pull request ISIL-ESTE#61 from bellaabdelouahab/dev

    Enhance -  appError & code cleanup & login page in frontend [ISIL-ESTE#61]

commit 92eddd6
Merge: 2d3a5d3 d5b3b60
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:26:43 2023 +0100

    Merge commit 'd5b3b6057f88106099a3fd2a1095de400e767ff6' into dev

commit 2d3a5d3
Merge: fbbdda1 55be937
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:23:56 2023 +0100

    Merge branch 'ISIL-ESTE:dev' into dev

commit fbbdda1
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:22:42 2023 +0100

    enhe-app error clean up

commit 55be937
Merge: a6fe803 dab86a2
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:20:07 2023 +0100

    Merge pull request ISIL-ESTE#56 from bellaabdelouahab/dev

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit d5b3b60
Author: yassineboujrada <yassine.boujrada@gmail.com>
Date:   Wed Jun 28 23:29:42 2023 +0100

    adding page for login with tailwind the part need is fix auth

commit 1cdb4ae
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Tue Jun 27 18:57:46 2023 +0100

    fix errors and add testing for activation

commit dab86a2
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 19:49:14 2023 +0100

    requested changes

commit 41865dd
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 17:31:27 2023 +0100

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit 8ebd680
Merge: 710ccbf a6fe803
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 21:56:09 2023 +0100

    trying to merge

commit a6fe803
Merge: 0115fee 2c4d94c
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sun Jun 25 21:49:23 2023 +0100

    Merge pull request ISIL-ESTE#53 from muttaqin1/refactor/file-names

    Refactor - ISIL-ESTE#53  change file names

commit 2c4d94c
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 02:18:51 2023 +0600

    Update import paths.

commit 7609c6b
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:32:02 2023 +0600

    Refactor file names with underscore.

commit 392b611
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:08:59 2023 +0600

    resolve ISIL-ESTE#52.

commit 710ccbf
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 19:17:42 2023 +0100

    requested changes

commit 0115fee
Merge: dca09e4 c7b8464
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Sun Jun 25 19:14:38 2023 +0100

    Merge pull request ISIL-ESTE#51 from bellaabdelouahab/dev

    fix - testing role managment

commit c7b8464
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:43:24 2023 +0100

    code cleaning

commit 5b65a0f
Merge: b2aa675 dca09e4
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:21:08 2023 +0100

    Merge remote-tracking

commit b2aa675
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 11:52:49 2023 +0100

    👌fix-swagger-autogen & endpoints & jwt,feat-tests

commit dca09e4
Merge: a97eeea 154d7ee
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 17:10:00 2023 +0100

    Merge pull request ISIL-ESTE#45 from muttaqin1/bugFix/ban-user

    [ISIL-ESTE#45 ] issue - Bug fix/ban user

commit 154d7ee
Merge: 8d857ee a97eeea
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 16:58:37 2023 +0100

    Merge branch 'dev' into bugFix/ban-user

commit 8d857ee
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Fri Jun 23 21:34:32 2023 +0600

    Fix ban and unban user.

commit a97eeea
Merge: d9ae2c6 17e53a5
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:41:41 2023 +0100

    Merge pull request ISIL-ESTE#40 from bellaabdelouahab/dev

    test - start code testing for login and sign up

commit 17e53a5
Merge: be73f7d d9ae2c6
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:39:57 2023 +0100

    Merge branch 'dev' into dev

commit d9ae2c6
Merge: 9d0bdd6 d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:31:44 2023 +0100

    Merge pull request ISIL-ESTE#38 from ISIL-ESTE/limiter

    add rate limit

commit be73f7d
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 14:58:43 2023 +0100

    test - add basic example of testing & fix imports

commit d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 13:46:01 2023 +0100

    add rate limit

commit 70bbe22
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:33:17 2023 +0100

    👌 ensuring that main branch is protected

commit 7301c3b
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:27:28 2023 +0100

    👌ensuring that Conterbute is working
bellaabdelouahab added a commit that referenced this pull request Aug 10, 2023
* fix - paths to user  model

* feat - api version control

* fix - conf morgan to ignore redirected req

* docs - base controller

* feat - calendar model

* Squashed commit of the following:

commit 3e0da0c
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Aug 11 00:13:20 2023 +0600

    Feat/token based authentication 2 (#91)

    * Move .husky to the base dir.

    * Delete eslintrc.json.

    * Resolve #71 & fix import paths for user_model .

    * token refresh & logout.

    * Add utility class auth_utils.

    * Configure cookie parser.

commit d5ff984
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:49:05 2023 +0100

    fix - add logo path to readme (#86)

commit 00c882e
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:47:07 2023 +0100

    fix - eslint json roles -> js (#85)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

    * extra fix

    * fix eslint json -> js

commit f0674fb
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:29:11 2023 +0100

    Update app_config.js (#84)

commit b659237
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:21:01 2023 +0100

    fix - Up date env variables : remove hard coded credentials  (#83)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

commit af609a1
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 10:41:55 2023 +0100

    Creating CONTRIBUTING.md (#79)

commit 9254b1d
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 28 00:10:13 2023 +0600

    Feat/configure pre-commit hook (#81)

    * configure pre-commit hooks.

    * Pre-commit hook test - lint & fix every .js & .json file.

commit fbb1537
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Wed Jul 26 17:47:48 2023 +0100

    fix - rate limiter & duplicated methods & env variables (#74)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

commit c1894bc
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Tue Jul 25 19:59:30 2023 +0100

    add count of closed pr (#76)

commit 8cf1209
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Wed Jul 26 00:38:42 2023 +0600

    Feat - token-based-authentication (#75)

    * Configure linter and formatter.

    * Add configurations for access & refresh token.

    * Add token model.

    * Add functionality to generate Access & refresh token and send it to
    user.

    * save exact version of dev-dependencies.

commit 0140aa1
Author: boujrada yassine <63125972+yassineboujrada@users.noreply.github.com>
Date:   Fri Jul 21 10:44:15 2023 +0100

    Implement Sign Up Component with Next.js (#67)

    * adding a login page but it need a auth

    * adding sign up componenet

commit e2227f9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:46:10 2023 +0100

     dependencies update #69

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19b5bf9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:45:40 2023 +0100

     dependencies update #68

    Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.10.4 to 6.11.3.
    - [Release notes](https://github.com/Automattic/mongoose/releases)
    - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
    - [Commits](Automattic/mongoose@6.10.4...6.11.3)

    ---
    updated-dependencies:
    - dependency-name: mongoose
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c6c6d61
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:44:40 2023 +0100

     dependencies update #65

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit dd8c55a
Merge: e2503a6 9b899d0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:02:36 2023 +0100

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

commit e2503a6
Merge: 372d6ce 26702c0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:01:06 2023 +0100

    Github Oauth integration #58

    Github Oauth integration #58

commit 9b899d0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Jul 13 05:00:30 2023 +0000

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

commit 26702c0
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 7 10:12:04 2023 +0600

    Github integration.

commit 372d6ce
Merge: 55be937 92eddd6
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:29:57 2023 +0100

    Merge pull request #61 from bellaabdelouahab/dev

    Enhance -  appError & code cleanup & login page in frontend [#61]

commit 92eddd6
Merge: 2d3a5d3 d5b3b60
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:26:43 2023 +0100

    Merge commit 'd5b3b6057f88106099a3fd2a1095de400e767ff6' into dev

commit 2d3a5d3
Merge: fbbdda1 55be937
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:23:56 2023 +0100

    Merge branch 'ISIL-ESTE:dev' into dev

commit fbbdda1
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:22:42 2023 +0100

    enhe-app error clean up

commit 55be937
Merge: a6fe803 dab86a2
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:20:07 2023 +0100

    Merge pull request #56 from bellaabdelouahab/dev

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit d5b3b60
Author: yassineboujrada <yassine.boujrada@gmail.com>
Date:   Wed Jun 28 23:29:42 2023 +0100

    adding page for login with tailwind the part need is fix auth

commit 1cdb4ae
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Tue Jun 27 18:57:46 2023 +0100

    fix errors and add testing for activation

commit dab86a2
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 19:49:14 2023 +0100

    requested changes

commit 41865dd
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 17:31:27 2023 +0100

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit 8ebd680
Merge: 710ccbf a6fe803
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 21:56:09 2023 +0100

    trying to merge

commit a6fe803
Merge: 0115fee 2c4d94c
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sun Jun 25 21:49:23 2023 +0100

    Merge pull request #53 from muttaqin1/refactor/file-names

    Refactor - #53  change file names

commit 2c4d94c
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 02:18:51 2023 +0600

    Update import paths.

commit 7609c6b
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:32:02 2023 +0600

    Refactor file names with underscore.

commit 392b611
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:08:59 2023 +0600

    resolve #52.

commit 710ccbf
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 19:17:42 2023 +0100

    requested changes

commit 0115fee
Merge: dca09e4 c7b8464
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Sun Jun 25 19:14:38 2023 +0100

    Merge pull request #51 from bellaabdelouahab/dev

    fix - testing role managment

commit c7b8464
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:43:24 2023 +0100

    code cleaning

commit 5b65a0f
Merge: b2aa675 dca09e4
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:21:08 2023 +0100

    Merge remote-tracking

commit b2aa675
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 11:52:49 2023 +0100

    👌fix-swagger-autogen & endpoints & jwt,feat-tests

commit dca09e4
Merge: a97eeea 154d7ee
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 17:10:00 2023 +0100

    Merge pull request #45 from muttaqin1/bugFix/ban-user

    [#45 ] issue - Bug fix/ban user

commit 154d7ee
Merge: 8d857ee a97eeea
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 16:58:37 2023 +0100

    Merge branch 'dev' into bugFix/ban-user

commit 8d857ee
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Fri Jun 23 21:34:32 2023 +0600

    Fix ban and unban user.

commit a97eeea
Merge: d9ae2c6 17e53a5
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:41:41 2023 +0100

    Merge pull request #40 from bellaabdelouahab/dev

    test - start code testing for login and sign up

commit 17e53a5
Merge: be73f7d d9ae2c6
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:39:57 2023 +0100

    Merge branch 'dev' into dev

commit d9ae2c6
Merge: 9d0bdd6 d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:31:44 2023 +0100

    Merge pull request #38 from ISIL-ESTE/limiter

    add rate limit

commit be73f7d
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 14:58:43 2023 +0100

    test - add basic example of testing & fix imports

commit d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 13:46:01 2023 +0100

    add rate limit

commit 70bbe22
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:33:17 2023 +0100

    👌 ensuring that main branch is protected

commit 7301c3b
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:27:28 2023 +0100

    👌ensuring that Conterbute is working
bellaabdelouahab added a commit that referenced this pull request Aug 28, 2023
* fix - paths to user  model

* feat - api version control

* fix - conf morgan to ignore redirected req

* docs - base controller

* feat - calendar model

* Squashed commit of the following:

commit 3e0da0c
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Aug 11 00:13:20 2023 +0600

    Feat/token based authentication 2 (#91)

    * Move .husky to the base dir.

    * Delete eslintrc.json.

    * Resolve #71 & fix import paths for user_model .

    * token refresh & logout.

    * Add utility class auth_utils.

    * Configure cookie parser.

commit d5ff984
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:49:05 2023 +0100

    fix - add logo path to readme (#86)

commit 00c882e
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:47:07 2023 +0100

    fix - eslint json roles -> js (#85)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

    * extra fix

    * fix eslint json -> js

commit f0674fb
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:29:11 2023 +0100

    Update app_config.js (#84)

commit b659237
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:21:01 2023 +0100

    fix - Up date env variables : remove hard coded credentials  (#83)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

commit af609a1
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 10:41:55 2023 +0100

    Creating CONTRIBUTING.md (#79)

commit 9254b1d
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 28 00:10:13 2023 +0600

    Feat/configure pre-commit hook (#81)

    * configure pre-commit hooks.

    * Pre-commit hook test - lint & fix every .js & .json file.

commit fbb1537
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Wed Jul 26 17:47:48 2023 +0100

    fix - rate limiter & duplicated methods & env variables (#74)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

commit c1894bc
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Tue Jul 25 19:59:30 2023 +0100

    add count of closed pr (#76)

commit 8cf1209
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Wed Jul 26 00:38:42 2023 +0600

    Feat - token-based-authentication (#75)

    * Configure linter and formatter.

    * Add configurations for access & refresh token.

    * Add token model.

    * Add functionality to generate Access & refresh token and send it to
    user.

    * save exact version of dev-dependencies.

commit 0140aa1
Author: boujrada yassine <63125972+yassineboujrada@users.noreply.github.com>
Date:   Fri Jul 21 10:44:15 2023 +0100

    Implement Sign Up Component with Next.js (#67)

    * adding a login page but it need a auth

    * adding sign up componenet

commit e2227f9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:46:10 2023 +0100

     dependencies update #69

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19b5bf9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:45:40 2023 +0100

     dependencies update #68

    Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.10.4 to 6.11.3.
    - [Release notes](https://github.com/Automattic/mongoose/releases)
    - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
    - [Commits](Automattic/mongoose@6.10.4...6.11.3)

    ---
    updated-dependencies:
    - dependency-name: mongoose
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c6c6d61
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:44:40 2023 +0100

     dependencies update #65

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit dd8c55a
Merge: e2503a6 9b899d0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:02:36 2023 +0100

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

commit e2503a6
Merge: 372d6ce 26702c0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:01:06 2023 +0100

    Github Oauth integration #58

    Github Oauth integration #58

commit 9b899d0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Jul 13 05:00:30 2023 +0000

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

commit 26702c0
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 7 10:12:04 2023 +0600

    Github integration.

commit 372d6ce
Merge: 55be937 92eddd6
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:29:57 2023 +0100

    Merge pull request #61 from bellaabdelouahab/dev

    Enhance -  appError & code cleanup & login page in frontend [#61]

commit 92eddd6
Merge: 2d3a5d3 d5b3b60
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:26:43 2023 +0100

    Merge commit 'd5b3b6057f88106099a3fd2a1095de400e767ff6' into dev

commit 2d3a5d3
Merge: fbbdda1 55be937
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:23:56 2023 +0100

    Merge branch 'ISIL-ESTE:dev' into dev

commit fbbdda1
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:22:42 2023 +0100

    enhe-app error clean up

commit 55be937
Merge: a6fe803 dab86a2
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:20:07 2023 +0100

    Merge pull request #56 from bellaabdelouahab/dev

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit d5b3b60
Author: yassineboujrada <yassine.boujrada@gmail.com>
Date:   Wed Jun 28 23:29:42 2023 +0100

    adding page for login with tailwind the part need is fix auth

commit 1cdb4ae
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Tue Jun 27 18:57:46 2023 +0100

    fix errors and add testing for activation

commit dab86a2
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 19:49:14 2023 +0100

    requested changes

commit 41865dd
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 17:31:27 2023 +0100

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit 8ebd680
Merge: 710ccbf a6fe803
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 21:56:09 2023 +0100

    trying to merge

commit a6fe803
Merge: 0115fee 2c4d94c
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sun Jun 25 21:49:23 2023 +0100

    Merge pull request #53 from muttaqin1/refactor/file-names

    Refactor - #53  change file names

commit 2c4d94c
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 02:18:51 2023 +0600

    Update import paths.

commit 7609c6b
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:32:02 2023 +0600

    Refactor file names with underscore.

commit 392b611
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:08:59 2023 +0600

    resolve #52.

commit 710ccbf
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 19:17:42 2023 +0100

    requested changes

commit 0115fee
Merge: dca09e4 c7b8464
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Sun Jun 25 19:14:38 2023 +0100

    Merge pull request #51 from bellaabdelouahab/dev

    fix - testing role managment

commit c7b8464
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:43:24 2023 +0100

    code cleaning

commit 5b65a0f
Merge: b2aa675 dca09e4
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:21:08 2023 +0100

    Merge remote-tracking

commit b2aa675
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 11:52:49 2023 +0100

    👌fix-swagger-autogen & endpoints & jwt,feat-tests

commit dca09e4
Merge: a97eeea 154d7ee
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 17:10:00 2023 +0100

    Merge pull request #45 from muttaqin1/bugFix/ban-user

    [#45 ] issue - Bug fix/ban user

commit 154d7ee
Merge: 8d857ee a97eeea
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 16:58:37 2023 +0100

    Merge branch 'dev' into bugFix/ban-user

commit 8d857ee
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Fri Jun 23 21:34:32 2023 +0600

    Fix ban and unban user.

commit a97eeea
Merge: d9ae2c6 17e53a5
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:41:41 2023 +0100

    Merge pull request #40 from bellaabdelouahab/dev

    test - start code testing for login and sign up

commit 17e53a5
Merge: be73f7d d9ae2c6
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:39:57 2023 +0100

    Merge branch 'dev' into dev

commit d9ae2c6
Merge: 9d0bdd6 d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:31:44 2023 +0100

    Merge pull request #38 from ISIL-ESTE/limiter

    add rate limit

commit be73f7d
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 14:58:43 2023 +0100

    test - add basic example of testing & fix imports

commit d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 13:46:01 2023 +0100

    add rate limit

commit 70bbe22
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:33:17 2023 +0100

    👌 ensuring that main branch is protected

commit 7301c3b
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:27:28 2023 +0100

    👌ensuring that Conterbute is working

* enhance - add base routes for Calendar

* fix - add metadata to event model

* fix - update calendar routes

* fix add gitignore in base dir

* feat - add bearer extractor

* fix - api auto versioning and clean code

* fix - swagger load after app starts

* create jest config file

* fix - access boolean in env

* fix -
*  required account activation
* add new impl of api version
* config jest setup & teardown
* add calendar participents routes

* fix -  jest command not found

* update - unit tests

* fix - keep db connection alive in all tests

* inhen - signup tests working

* fix - tests for signup login activate

* fix - signup conflict

* combine signip and login tests

* fix - sanitize email input

* fix - other sql inj vulnerabilities

* help wanted - disable signup

* fix - restructure controllers folders

* fix - new importations

* inhence - use package.json version as reference
to backend api

* fix - sentiseze updateMe route body

* fix - user id parsing

* fix - package importing
bellaabdelouahab added a commit that referenced this pull request Sep 2, 2023
* fix - paths to user  model

* feat - api version control

* fix - conf morgan to ignore redirected req

* docs - base controller

* feat - calendar model

* Squashed commit of the following:

commit 3e0da0c
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Aug 11 00:13:20 2023 +0600

    Feat/token based authentication 2 (#91)

    * Move .husky to the base dir.

    * Delete eslintrc.json.

    * Resolve #71 & fix import paths for user_model .

    * token refresh & logout.

    * Add utility class auth_utils.

    * Configure cookie parser.

commit d5ff984
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:49:05 2023 +0100

    fix - add logo path to readme (#86)

commit 00c882e
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 12:47:07 2023 +0100

    fix - eslint json roles -> js (#85)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

    * extra fix

    * fix eslint json -> js

commit f0674fb
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:29:11 2023 +0100

    Update app_config.js (#84)

commit b659237
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 11:21:01 2023 +0100

    fix - Up date env variables : remove hard coded credentials  (#83)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

    * fix - adapt testing to new functionalities

    * fix - env variables security

commit af609a1
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jul 28 10:41:55 2023 +0100

    Creating CONTRIBUTING.md (#79)

commit 9254b1d
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 28 00:10:13 2023 +0600

    Feat/configure pre-commit hook (#81)

    * configure pre-commit hooks.

    * Pre-commit hook test - lint & fix every .js & .json file.

commit fbb1537
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Wed Jul 26 17:47:48 2023 +0100

    fix - rate limiter & duplicated methods & env variables (#74)

    * Update access to env

    * configure rate limiter to ignore the SSE requests

    * verify user authorities and restrictions

    * update access to env variables

commit c1894bc
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Tue Jul 25 19:59:30 2023 +0100

    add count of closed pr (#76)

commit 8cf1209
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Wed Jul 26 00:38:42 2023 +0600

    Feat - token-based-authentication (#75)

    * Configure linter and formatter.

    * Add configurations for access & refresh token.

    * Add token model.

    * Add functionality to generate Access & refresh token and send it to
    user.

    * save exact version of dev-dependencies.

commit 0140aa1
Author: boujrada yassine <63125972+yassineboujrada@users.noreply.github.com>
Date:   Fri Jul 21 10:44:15 2023 +0100

    Implement Sign Up Component with Next.js (#67)

    * adding a login page but it need a auth

    * adding sign up componenet

commit e2227f9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:46:10 2023 +0100

     dependencies update #69

    Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
    - [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
    - [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

    ---
    updated-dependencies:
    - dependency-name: word-wrap
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit 19b5bf9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:45:40 2023 +0100

     dependencies update #68

    Bumps [mongoose](https://github.com/Automattic/mongoose) from 6.10.4 to 6.11.3.
    - [Release notes](https://github.com/Automattic/mongoose/releases)
    - [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
    - [Commits](Automattic/mongoose@6.10.4...6.11.3)

    ---
    updated-dependencies:
    - dependency-name: mongoose
      dependency-type: direct:production
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit c6c6d61
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Jul 21 09:44:40 2023 +0100

     dependencies update #65

    Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
    - [Commits](npm/node-semver@v5.7.1...v5.7.2)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

commit dd8c55a
Merge: e2503a6 9b899d0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:02:36 2023 +0100

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app #64

commit e2503a6
Merge: 372d6ce 26702c0
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Thu Jul 13 15:01:06 2023 +0100

    Github Oauth integration #58

    Github Oauth integration #58

commit 9b899d0
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Thu Jul 13 05:00:30 2023 +0000

    Bump semver from 6.3.0 to 6.3.1 in /frontend-app

    Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
    - [Release notes](https://github.com/npm/node-semver/releases)
    - [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
    - [Commits](npm/node-semver@v6.3.0...v6.3.1)

    ---
    updated-dependencies:
    - dependency-name: semver
      dependency-type: indirect
    ...

    Signed-off-by: dependabot[bot] <support@github.com>

commit 26702c0
Author: Muttaqin <MDMUTTAQIN20@GMAIL.COM>
Date:   Fri Jul 7 10:12:04 2023 +0600

    Github integration.

commit 372d6ce
Merge: 55be937 92eddd6
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:29:57 2023 +0100

    Merge pull request #61 from bellaabdelouahab/dev

    Enhance -  appError & code cleanup & login page in frontend [#61]

commit 92eddd6
Merge: 2d3a5d3 d5b3b60
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:26:43 2023 +0100

    Merge commit 'd5b3b6057f88106099a3fd2a1095de400e767ff6' into dev

commit 2d3a5d3
Merge: fbbdda1 55be937
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:23:56 2023 +0100

    Merge branch 'ISIL-ESTE:dev' into dev

commit fbbdda1
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sat Jul 1 16:22:42 2023 +0100

    enhe-app error clean up

commit 55be937
Merge: a6fe803 dab86a2
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sat Jul 1 16:20:07 2023 +0100

    Merge pull request #56 from bellaabdelouahab/dev

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit d5b3b60
Author: yassineboujrada <yassine.boujrada@gmail.com>
Date:   Wed Jun 28 23:29:42 2023 +0100

    adding page for login with tailwind the part need is fix auth

commit 1cdb4ae
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Tue Jun 27 18:57:46 2023 +0100

    fix errors and add testing for activation

commit dab86a2
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 19:49:14 2023 +0100

    requested changes

commit 41865dd
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Mon Jun 26 17:31:27 2023 +0100

    Add user activation, metadata, routes, and soft delete logic; fix response path and server errors

commit 8ebd680
Merge: 710ccbf a6fe803
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 21:56:09 2023 +0100

    trying to merge

commit a6fe803
Merge: 0115fee 2c4d94c
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Sun Jun 25 21:49:23 2023 +0100

    Merge pull request #53 from muttaqin1/refactor/file-names

    Refactor - #53  change file names

commit 2c4d94c
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 02:18:51 2023 +0600

    Update import paths.

commit 7609c6b
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:32:02 2023 +0600

    Refactor file names with underscore.

commit 392b611
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Mon Jun 26 01:08:59 2023 +0600

    resolve #52.

commit 710ccbf
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 19:17:42 2023 +0100

    requested changes

commit 0115fee
Merge: dca09e4 c7b8464
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Sun Jun 25 19:14:38 2023 +0100

    Merge pull request #51 from bellaabdelouahab/dev

    fix - testing role managment

commit c7b8464
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:43:24 2023 +0100

    code cleaning

commit 5b65a0f
Merge: b2aa675 dca09e4
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 12:21:08 2023 +0100

    Merge remote-tracking

commit b2aa675
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Sun Jun 25 11:52:49 2023 +0100

    👌fix-swagger-autogen & endpoints & jwt,feat-tests

commit dca09e4
Merge: a97eeea 154d7ee
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 17:10:00 2023 +0100

    Merge pull request #45 from muttaqin1/bugFix/ban-user

    [#45 ] issue - Bug fix/ban user

commit 154d7ee
Merge: 8d857ee a97eeea
Author: Abdelouahab Bella <abdobella977@gmail.com>
Date:   Fri Jun 23 16:58:37 2023 +0100

    Merge branch 'dev' into bugFix/ban-user

commit 8d857ee
Author: muttaqin1 <mdmuttaqin20@gmail.com>
Date:   Fri Jun 23 21:34:32 2023 +0600

    Fix ban and unban user.

commit a97eeea
Merge: d9ae2c6 17e53a5
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:41:41 2023 +0100

    Merge pull request #40 from bellaabdelouahab/dev

    test - start code testing for login and sign up

commit 17e53a5
Merge: be73f7d d9ae2c6
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:39:57 2023 +0100

    Merge branch 'dev' into dev

commit d9ae2c6
Merge: 9d0bdd6 d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 15:31:44 2023 +0100

    Merge pull request #38 from ISIL-ESTE/limiter

    add rate limit

commit be73f7d
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 14:58:43 2023 +0100

    test - add basic example of testing & fix imports

commit d6ebb36
Author: Khalid BOUSSAROUAL <102565973+Khalid1G@users.noreply.github.com>
Date:   Thu Jun 22 13:46:01 2023 +0100

    add rate limit

commit 70bbe22
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:33:17 2023 +0100

    👌 ensuring that main branch is protected

commit 7301c3b
Author: Abdelouahab Bella <a.bella4246@uca.ac.ma>
Date:   Thu Jun 22 11:27:28 2023 +0100

    👌ensuring that Conterbute is working

* enhance - add base routes for Calendar

* fix - add metadata to event model

* fix - update calendar routes

* fix add gitignore in base dir

* feat - add bearer extractor

* fix - api auto versioning and clean code

* fix - swagger load after app starts

* create jest config file

* fix - access boolean in env

* fix -
*  required account activation
* add new impl of api version
* config jest setup & teardown
* add calendar participents routes

* fix -  jest command not found

* update - unit tests

* fix - keep db connection alive in all tests

* inhen - signup tests working

* fix - tests for signup login activate

* fix - signup conflict

* combine signip and login tests

* fix - sanitize email input

* fix - other sql inj vulnerabilities

* help wanted - disable signup

* fix - restructure controllers folders

* fix - new importations

* inhence - use package.json version as reference
to backend api

* fix - sentiseze updateMe route body

* fix - user id parsing

* fix - package importing

* feat - create seed data

* inhen - update calendar & event model field names

* inhance - switching to Ts

* fix - ci for nodejs api
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

fix - base roles are being generated each time the app starts fix - refresh token , store generated token
2 participants