-
Notifications
You must be signed in to change notification settings - Fork 19
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
Refactor Auth API #102
Comments
Looks good 👍 . Maybe you want to consider a different name for |
Actually, in my current work, I actually defined only two functions in the server API: I could possibly also export checkSignatureV4 and checkSignatureV2, as well as the associated extractParams, but not in the first step. I hope to be able to put out the first set of PRs tuesday :) |
As noted in https://github.com/scality/Arsenal/pull/119/files/3267fd091deac5d00f951bacf278362fca28f86d#r72753763 , |
Piggybacking on @LaurenSpiegel 's comment we should make it generic in the sense it should not set any headers to the request object, it should just return a generic object with the headers that can be set. |
To be clear, there are 2 issues that are separate:
|
@rahulreddy @LaurenSpiegel Should we create a dedicated issue for the generateV4Headers's signed header topic ? Not modifying the request object is already part of my aim for this task. |
@DavidPineauScality, I already fixed the signed headers issue so that the encrypted bucket creation tool would work. 18d657b |
Ok perfect, thanks. I guess a huge rebase is waiting for me again... On Wed, Aug 24, 2016 at 6:22 PM, Lauren Spiegel [email protected]
David Pineau |
Following the work done in the associated PR, Only one thing is left remaining to completely wrap up this rework: Use the new API to remove slowly the doAuth from the relevant components, and then remove the doAuth utility function altogether. |
We need to refactor the auth API so as to:
The planned API is as follows:
This is the general feeling. The Client would use the client API, and the server could use the server API in two steps:
Admitedly, the current API is missing a potential options object, or at least an AWSServiceName to use.
The text was updated successfully, but these errors were encountered: