-
Notifications
You must be signed in to change notification settings - Fork 26
Authorization #22
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
Authorization #22
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I focused on reviewing the front part, and since it helps you to keep working, LGTM.
I can rearrange the API part once #16 has been approved
server/service/jwt.go
Outdated
func (j *JWT) MakeToken(user *model.User) (string, error) { | ||
claims := &jwtClaim{ID: user.ID} | ||
t := jwt.NewWithClaims(jwt.SigningMethodHS256, claims) | ||
fmt.Println("skey", j.signingKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove
I only have two comments:
|
@carlosms very good points!
|
blocked by #16 and structure review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd not block this PR because of #16
imho this can be merged, and I'll rebase and rework on top of this one. I think it will be better because this functionality is already "completed" from the back to the FE
Sounds good, let @smacker finish last few things in here i.e documenting in README how the user should create/provide token \w minimal permissions and set it for a Docker image built locally and then merge this one first. |
ee859c9
to
06506a4
Compare
* OAuth2 with github * JWT * Keep token in local storage * Removed service worker (it catches all locations and I don't see how to override it without create-react-app eject) Signed-off-by: Maxim Sukharev <maxim@sourced.tech>
Merging. |
add node and npm as dependencies
Fixes: #20
to override it without create-react-app eject)
TBD: