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

feat(back): Role based access #46

Merged
merged 1 commit into from
May 21, 2023
Merged

feat(back): Role based access #46

merged 1 commit into from
May 21, 2023

Conversation

michaelcoll
Copy link
Owner

  • Add first admin email
  • User endpoints (list, deactivate, activate)
  • Move the storage of token from db to mem cache

Closes #45 #37 #40 #41

- Add first admin email
- User endpoints (list, deactivate, activate)
- Move the storage of token from db to mem cache

Closes #45 #37 #40 #41
@michaelcoll michaelcoll added feat New feature or request go Pull requests that update Go code labels May 21, 2023
@michaelcoll michaelcoll added this to the v1 milestone May 21, 2023
@michaelcoll michaelcoll self-assigned this May 21, 2023
}

return &domain.AccessToken{
Aud: res.Aud,
Sub: res.Sub,
Exp: time.Unix(expUnix, 0),
ExpiresIn: int(expIn),

Check failure

Code scanning / CodeQL

Incorrect conversion between integer types High

Incorrect conversion of a 64-bit integer from
strconv.ParseInt
to a lower bit size type int without an upper bound check.
@michaelcoll michaelcoll merged commit 757d005 into main May 21, 2023
3 of 4 checks passed
@michaelcoll michaelcoll deleted the feat/role-based-access branch May 21, 2023 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request go Pull requests that update Go code
Projects
None yet
1 participant