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: include OAuth2 authentication flow #4546

Merged

Conversation

frascuchon
Copy link
Member

Description

OAuth2 integration flow

  • Adding new oauth2 endpoints
  • Adding new oauth providers configuration

Type of change

(Please delete options that are not relevant. Remember to title the PR according to the type of change)

  • New feature (non-breaking change which adds functionality)
  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)

How Has This Been Tested

Running locally

(Please describe the tests that you ran to verify your changes. And ideally, reference tests)

  • Test A
  • Test B

Checklist

  • I added relevant documentation
  • I followed the style guidelines of this project
  • I did a self-review of my code
  • I made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I filled out the contributor form (see text above)
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. area: api Indicates that an issue or pull request is related to the Fast API server or REST endpoints language: python Pull requests or issues that update Python code team: backend Indicates that the issue or pull request is owned by the backend team type: enhancement Indicates new feature requests labels Jan 29, 2024
@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels Jan 29, 2024
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels Jan 29, 2024
@frascuchon frascuchon changed the title Feat/include oauth authentication flow feat: include OAuth2 authentication flow Jan 29, 2024
Copy link

The URL of the deployed environment for this PR is https://argilla-quickstart-pr-4546-ki24f765kq-no.a.run.app

src/argilla/server/apis/v1/handlers/oauth2.py Outdated Show resolved Hide resolved
src/argilla/server/apis/v1/handlers/oauth2.py Outdated Show resolved Hide resolved
return provider.authorization_redirect(request)


@router.get("/providers/{provider}/access-token")
Copy link
Member

Choose a reason for hiding this comment

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

Should we add response_model=Token here?

src/argilla/server/apis/v1/handlers/oauth2.py Outdated Show resolved Hide resolved
src/argilla/server/contexts/accounts.py Outdated Show resolved Hide resolved
src/argilla/server/contexts/accounts.py Outdated Show resolved Hide resolved
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jan 30, 2024
@frascuchon frascuchon merged commit 2bb8642 into feature/oauth-integration Jan 30, 2024
12 of 16 checks passed
@frascuchon frascuchon deleted the feat/include-oauth-authentication-flow branch January 30, 2024 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Indicates that an issue or pull request is related to the Fast API server or REST endpoints language: python Pull requests or issues that update Python code lgtm This PR has been approved by a maintainer size:XL This PR changes 500-999 lines, ignoring generated files. team: backend Indicates that the issue or pull request is owned by the backend team type: enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants