Skip to content

fix: authentication issues caused by update/delete operations#127

Merged
siddharthlatest merged 2 commits into
devfrom
feat/user_cache
Jul 2, 2020
Merged

fix: authentication issues caused by update/delete operations#127
siddharthlatest merged 2 commits into
devfrom
feat/user_cache

Conversation

@bietkul
Copy link
Copy Markdown

@bietkul bietkul commented Jul 2, 2020

What does this do / why do we need it?

This PR fixes the following bugs:

  • Clear the auth cache after update/delete operations on user/permission object
  • Fix the PATCH user endpoint to store the hashed password

Users
https://www.loom.com/share/ab780d239c8545758372a8d2d4563471

Permissions
https://www.loom.com/share/34b03e09cb3d433392c77c1d186d6844

What should your reviewer look out for in this PR?

Which issue(s) does this PR fix?

If this PR affects any API reference documentation, please share the updated endpoint references

@bietkul bietkul requested a review from siddharthlatest July 2, 2020 07:02
@bietkul bietkul changed the title fix: authentication issues caused by updates/deletes operations fix: authentication issues caused by update/delete operations Jul 2, 2020
Comment thread plugins/auth/auth.go Outdated
}

// CredentialCache represents the cached users/credentials where key is `username`
// Auth (TODO - clear cache after fixed entries: LRU?)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bietkul This TODO note should go away now imo.

@siddharthlatest siddharthlatest merged commit 6b9de70 into dev Jul 2, 2020
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