-
Notifications
You must be signed in to change notification settings - Fork 112
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
signature authentication for public links #1590
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
1446ee5
to
de48538
Compare
@ishank011 we would like to bring that into the release. Could you do a fastlane 🏎️ review? |
de48538
to
775cfc0
Compare
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.
@C0rby you're returning the password instead of the sign in the getter methods.
internal/grpc/services/publicshareprovider/publicshareprovider.go
Outdated
Show resolved
Hide resolved
internal/grpc/services/publicstorageprovider/publicstorageprovider.go
Outdated
Show resolved
Hide resolved
pkg/cbox/publicshare/sql/sql.go
Outdated
switch { | ||
case auth.Password != "": | ||
return checkPasswordHash(auth.Password, pw) | ||
case auth.Signature != publicshare.Signature{}: |
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.
Are you sure this condition isn't true when auth.Signature is 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.
auth.Signature
can't be nil.
Implemented the mechanism proposed here: cs3org/cs3apis#110. The signature authentication is limited to downloads.
775cfc0
to
e0e0250
Compare
Implemented the mechanism proposed here: cs3org/cs3apis#110.
The signature authentication is limited to downloads.