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

task/WG-268: add authentification to backend #244

Merged

Conversation

nathanfranklin
Copy link
Collaborator

@nathanfranklin nathanfranklin commented Jun 25, 2024

Overview:

Use geoapis new auth endpoints instead of authing with tapis.

Note: updating the key were we store this in local storage so not accidentally get a v3 token

PR Status:

  • Ready.

Related Jira tickets:

Summary of Changes:

Testing Steps:

  1. To be tested with task/WG-268: add authentification to backend geoapi#206
  2. Ensure log-in works. (/login or /logout
  3. You could logout and then go to a URL of a map project and ensure after login you end up at that project).
  4. You could change the "is-expired" buffer (in angular/src/app/models/models.ts) from 5 minutes to 3hrs and 55 minutes ( 14100000 ms). So then the token which lasts 4 hours is updated after just 5 minutes of uses and you can see the login happening again.
  5. On server side, you could also change: BUFFER_TIME_WHEN_CHECKING_IF_ACCESS_TOKEN_WAS_RECENTLY_REFRESHED and BUFFER_TIME_FOR_EXPIRING_TOKENS in jwt_utils.py

@nathanfranklin nathanfranklin changed the base branch from master to feature/tapisv3 June 25, 2024 20:37
@nathanfranklin nathanfranklin merged commit ddd2ada into feature/tapisv3 Jul 9, 2024
5 checks passed
@nathanfranklin nathanfranklin deleted the task/WG-268-add-authentification-to-backend branch July 9, 2024 14:49
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.

1 participant