OAuth1: Allow empty customer secrets, according to the specifications.#1596
Conversation
Signed-off-by: Jämes Ménétrey <james@menetrey.me>
|
Hey James, Funny, I stumbled upon this as I was opening my own PR for this exact MAAS api issue! I opened #1597 explaining the behavior a bit but wanted to comment on this PR rather than opening a duplicate:
|
…e different OAuthTypes.
|
Hello Patrick, Many thanks for your feedback and I am happy to see some tractions around this use case! I have applied your suggestion regarding the enhancement of the unit test.
I hesitated before changing these signatures. My reasoning was that introducing a nullable type for the parameter Cheers! |
Description
OAuth 1.0a specifications allow to use of an empty custom secret (see [here](https://oauth.net/core/1.0a/, section 4: The Consumer Secret MAY be an empty string [..]). Similarly to #776, I needed to call MAAS API, where the customer secret must not be provided (0-legged OAuth). This pull request removes the constraint of providing customer secrets for OAuth1.
This has been tested over the API of MAAS, which does not require any customer secret.
Purpose
This pull request is a:
Checklist
Don't hesitate to ask for changes in that pull request if needed.
Cheers