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

574 validate token #796

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

574 validate token #796

wants to merge 5 commits into from

Conversation

mlitre
Copy link
Contributor

@mlitre mlitre commented Sep 16, 2024

Describe your changes

In this PR I've done several changes:

  • Apply the LocalPreAuthorize logic to both Local Auth List and AuthCache
  • Apply correctly the configuration variables in the offline vs online scenarios
  • Applied correctly the disable remote auth variable for all token types
  • Fixed trying to send Auth req for emaid token when offline

Todo:

  • Add tests

Issue ticket number and link

Fixes issue #574

Checklist before requesting a review

Removed references to get_vector_from_csv by split_string since this last method is more extensible / reusable.

Signed-off-by: mlitre <martinlitre@mac.com>
Method completely removed since we can just use the split_string method instead.

Signed-off-by: mlitre <martinlitre@mac.com>
Fixed edge cases concerning the two variables LocalPreAuthorize and LocalAuthorizeOffline.
In some cases the cache was checked when offline even if LocalAuthorizeOffline was false.

Signed-off-by: mlitre <martinlitre@mac.com>
Verification of this configuration variable is also done for the Local Authorization List.

Signed-off-by: mlitre <martinlitre@mac.com>
We could send Authorize requests with an emaid token even though disable remote auth was true.

Signed-off-by: mlitre <martinlitre@mac.com>
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.

2 participants