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

Feature - Keycloak V2 #147

Merged
merged 8 commits into from
Sep 8, 2022
Merged

Feature - Keycloak V2 #147

merged 8 commits into from
Sep 8, 2022

Conversation

LuanEdCosta
Copy link
Member

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Merging keycloak code into development.

* Create the base modules to integrate with keycloak

* Create a first implementation of the authenticate route

* Create the first implementation of the auth return route

* Finish creating all keycloak route handlers

* Fix keycloak route handlers

* Make the code exchange step works

* Check if session exists properly

* Delete old auth and create session middlewares

* Create a middleware to refresh the access token

* Refactor env variables and delete unused code

* Update README.md

* Store the session on redis

* Return status 401 if fails to refresh the token

* Set the redis TTL and makes the cookie expires if 30min inactive

* Return status 401 if tries to get user info without access token

* Closes express server if fails to connect to redis

* Update license exceptions

* Fix license exceptions
@LuanEdCosta LuanEdCosta requested a review from a team as a code owner September 8, 2022 13:51
@codecov
Copy link

codecov bot commented Sep 8, 2022

Codecov Report

Merging #147 (bff0794) into development (7db5bcf) will not change coverage.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           development    #147   +/-   ##
===========================================
  Coverage         0.00%   0.00%           
===========================================
  Files                2       2           
  Lines               19      15    -4     
  Branches             4       4           
===========================================
+ Misses              18      14    -4     
  Partials             1       1           
Flag Coverage Δ
Backstage 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/routers/GraphQL.js 0.00% <0.00%> (ø)
src/routers/Keycloak.js 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant