Commit Graph

21 Commits

Author SHA1 Message Date
427825b186 🥅 fix: add error handling for GitHub auth request
All checks were successful
Integration Tests / integration-tests (pull_request) Successful in 29s
2026-02-19 16:46:21 +07:00
9c4854ce64 🩹 fix: change header name in cookie validation
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 28s
2026-02-18 12:55:16 +07:00
9686153a82 🔒 security: add auth token validation via Redis and DB check 2026-02-17 21:51:14 +07:00
c74597c57d 🐛 fix: access cookie via header on logout
Some checks failed
Integration Tests / integration-tests (pull_request) Failing after 51s
2026-02-15 22:58:24 +07:00
08125dcb11 feat: add logout module 2026-02-10 23:12:04 +07:00
20b371dbf6 feat: create token validation endpoint 2026-01-20 11:27:52 +07:00
5bcdeae663 🔧 chore: change selected data when create user session
These changes include:
1. Changes to the response structure when logging in with a third-party provider, by wrapping the token in `authToken` instead of directly entering it in the return data section.
2. Adding a type to user session creation by taking only the important elements. This is to prevent data leaks because important data is in jwt.
2026-01-09 14:10:56 +07:00
0cd253750a 🔧 chore: change response structure 2026-01-08 17:26:54 +07:00
c1d5d1692b feat: add new route to get client callback
This new route serves to find the client callback after successfully logging in from the provider page. This is done so that the callback becomes more flexible and can be changed at any time.
2026-01-08 17:22:05 +07:00
d8e8ec3fa7 ♻️ refactor: app token and oAuth endpoint request
These changes include:
1. Replacing the app token with a standard authorization barrier.
2. Changing the response body in the OAuth request by wrapping the endpoint link with a structure instead of placing it in the callback payload data.
2026-01-07 23:56:44 +07:00
a2a46ec933 🚩 (flags) complete github signup process 2025-09-07 23:17:00 +07:00
86f8c2a96d 🚧 (wip) try to add callback uri option 2025-09-03 15:34:11 +07:00
28d2ddad31 👔 change response format
Changing from write response to read response because the client must receive data in the form of jwt from the backend.
2025-08-30 10:21:04 +07:00
305e38bd45 🚧 (wip) testing with return context 2025-08-29 22:31:18 +07:00
7e8b5be6cd 👔 create list for oauth providers
create list and endpoint to see avaiable oauth providers.
2025-08-24 10:42:36 +07:00
8abf3d3818 👔 (oauth) add callback URI option for google
Adding a callback option to the Google OAuth provider used to define the OAuth callback URI. If not defined, the
callback URI will use the default value in the .env file.
2025-08-14 23:43:16 +07:00
3df1f342fc 👔 (oauth) add callback URI options
provides the option to define a callback URI following a request from the frontend; if not defined, it will
automatically use the backend's default URI.
2025-08-13 18:51:10 +07:00
5d79ffd055 🚩 add provision flow in oauth
Create a flow where if the user logs in with a registered Google account, they are immediately authenticated, but if no
account is found, create a new one.
2025-08-11 22:54:31 +07:00
ac0b25fb62 🏗️ separate http and internal service
separate between internal and http service due security concern in auth module
2025-08-07 23:07:53 +07:00
0d71710b14 add new oauth provider
add google idconnect as new auth provider
2025-08-06 15:31:24 +07:00
419b5b0ae4 create oauth login
Create authentication with oAuth using a third-party vendor. Currently, only GitHub is available, but more will be added
in the future.
2025-08-05 17:11:36 +07:00