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

SURFconext auth module and nginx integration #70

Merged
merged 8 commits into from
Jan 12, 2022
Merged

SURFconext auth module and nginx integration #70

merged 8 commits into from
Jan 12, 2022

Conversation

dmijatovic
Copy link
Contributor

@dmijatovic dmijatovic commented Jan 10, 2022

SURFconext auth module and nginx integration

Fixes #50 #8

The implementation of SURFConext authentication on the front-end and the integration with nginx as reverse proxy.

How to test:

  • docker-compose down --volumes: to remove old containers
  • docker-compose build: to build new images
  • docker-compose up: to start the solution. Examine the logs: the test should be passing for fronend and auth-tests
  • The app should be visible on http://localhost
  • Test data migration module by following these steps:
# navigate to data-migration folder
cd data-migration
# run docker-compose
docker-compose up
  • Test login with SURFconext:

    • First navigate to software page. Note! you should be redirected back to this page after login process is completed
    • click on SingIn button in the top right corner of the screen
      image
    • select SURFconext Test IdP and login with credentials: professor1 / professor1
    • you should be redirect back to software page and the avatar should be visible in the right top corner
      image
  • Test refresh tokens with SURFconext: navigate to my profile page using menu at user avatar. Note the exp value and wait for about 1 minute. The exp value will change. You can also examine browser console logs which should have logs about refresh schedule. Note! The token expiration time is currently set to very low value in order to test token refresh is working properly. The token expiration time should be

Nginx setup

The reverse proxy is setup with this routes:

  • root: home page of RSD (frontend)
  • auth: authentication module (Java)
  • api/v1: postgREST backend service (Haskel)
  • api/fe: api service of frontend (currently citations download and refresh tokens endpoint) (NodeJS)

@dmijatovic dmijatovic requested a review from ctwhome January 11, 2022 08:49
@dmijatovic dmijatovic merged commit dcb929c into main Jan 12, 2022
@dmijatovic dmijatovic deleted the nginx-auth branch January 13, 2022 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Login with SurfConext
2 participants