Skip to content
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

feat: handle Client Credential OAuth2 authentication method #134

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

deathiop
Copy link
Contributor

No description provided.

README.rst Outdated
@@ -104,12 +104,15 @@ it looks like:
; uncomment following line when writing a script application
; with a single consumer key.
;consumer_key=my_consumer_key
; uncomment to unable oauth2 authentication
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
; uncomment to unable oauth2 authentication
; uncomment to enable oauth2 authentication

ovh/client.py Outdated
``consumer_key`` uniquely identifies your application's end user without
requiring his personal password.
When using OAuth2 authentication, ``client_id`` and ``client_secret``
will be used to initiate a 2-Legged OAuth2 flow.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use client credentials flow instead of 2-Legged

ovh/oauth2.py Outdated
self.register_compliance_hook("access_token_response", self.save_error)
self.register_compliance_hook("refresh_token_response", self.save_error)

# This hijacks the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing end of sentence ?

@deathiop deathiop changed the title feat: handle 2-legged OAuth2 authentication method feat: handle Client Secret OAuth2 authentication method Jun 28, 2024
@deathiop deathiop requested a review from a team as a code owner June 28, 2024 14:49
@deathiop deathiop changed the title feat: handle Client Secret OAuth2 authentication method feat: handle Client Credential OAuth2 authentication method Jun 28, 2024
@deathiop deathiop merged commit a5d8ae6 into ovh:master Jul 23, 2024
7 checks passed
@deathiop deathiop deleted the origin/oauth2 branch July 23, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants