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

Upgrade to v2 #20

Open
15 tasks
swithek opened this issue Dec 5, 2021 · 0 comments
Open
15 tasks

Upgrade to v2 #20

swithek opened this issue Dec 5, 2021 · 0 comments
Labels
feature New feature or request

Comments

@swithek
Copy link
Owner

swithek commented Dec 5, 2021

  • Rename:
    • Manager.Defaults() -> Manager.reset() (?)
    • Manager.Auth() -> Manager.Authenticate()/Manager.Private() (?)
    • Manager.Init(...) -> Manager.Create(...) Session (?)
    • Manager.Revoke() -> Manager.RevokeCurrent()
    • Manager.RevokeByIDExt() -> Manager.RevokeByID() (the old RevokeByID should be removed)
    • Manager.RevokeOther() -> Manager.RevokeAllOther()
    • DefaultReject() -> DefaultRejectHandler()
    • Reject() -> RejectHandler()
    • Session.UserKey -> Session.SharedKey (?)
  • Add Manager.OnRevocation(fn)
  • Create a new (optional?) store interface that would store past logins. This would allow the manager to check when the user sends a request from a new machine.
  • Use https://github.com/mileusna/useragent for user agent extraction.
  • Use the new netip.Addr type.
  • Use only RemoteAddr when extracting an IP address. To extract it from other places, the user should use other middlewares (like the one chi has).
@swithek swithek added the feature New feature or request label Dec 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant