-
Notifications
You must be signed in to change notification settings - Fork 28
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
gasper changes for gctltoken generation #237
base: develop
Are you sure you want to change the base?
Conversation
package-lock.json
Outdated
@@ -0,0 +1,6 @@ | |||
{ |
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.
why this file?
services/master/middlewares/jwt.go
Outdated
@@ -34,6 +34,19 @@ func authenticator(c *gin.Context) (interface{}, error) { | |||
return user, nil | |||
} | |||
|
|||
func authenticatorForGctl(c *gin.Context) (interface{}, error) { | |||
auth := &types.Login{} |
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.
didn't we decide to change this type? Is it working without a password in the request body?
@@ -34,6 +34,19 @@ func authenticator(c *gin.Context) (interface{}, error) { | |||
return user, nil | |||
} | |||
|
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.
add a comment here that this function doesn't authenticate as authentication is already done in middleware.. this function is just to get the user
f1aaebf
to
fd1a268
Compare
fd1a268
to
599fff8
Compare
changes required to fix https://github.com/sdslabs/SWS/issues/24