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

[REFACTOR][ENHANCEMENT] argilla server: better OAuth2 integration #5689

Open
wants to merge 31 commits into
base: develop
Choose a base branch
from

Conversation

frascuchon
Copy link
Member

@frascuchon frascuchon commented Nov 13, 2024

Description

This PR improves the social_core integration, making setup backends simpler.

Improvements:

  • Reading SOCIAL_AUTH_* environment variables
  • Remove unnecessary settings attribute enabled
  • Add more backends with no-code: extra_backends* (some backends may be not fully supported, but users can create issues for that)

Type of change

  • Refactor (change restructuring the codebase without changing functionality)
  • Improvement (change adding some improvement to an existing functionality)
  • Documentation update

How Has This Been Tested

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
  • I confirm My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added relevant notes to the CHANGELOG.md file (See https://keepachangelog.com/)

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

Attention: Patch coverage is 89.51613% with 13 lines in your changes missing coverage. Please review.

Project coverage is 91.84%. Comparing base (62a1fd0) to head (b3e2cbe).

Files with missing lines Patch % Lines
..._server/security/authentication/oauth2/provider.py 71.87% 9 Missing ⚠️
...ver/security/authentication/oauth2/auth_backend.py 0.00% 2 Missing ⚠️
...server/security/authentication/oauth2/_backends.py 97.22% 1 Missing ⚠️
...illa-server/src/argilla_server/validators/users.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5689      +/-   ##
===========================================
- Coverage    91.98%   91.84%   -0.15%     
===========================================
  Files          161      159       -2     
  Lines         6778     6766      -12     
===========================================
- Hits          6235     6214      -21     
- Misses         543      552       +9     
Flag Coverage Δ
argilla-server 91.84% <89.51%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@frascuchon frascuchon added this to the v2.6.0 milestone Nov 14, 2024
@frascuchon frascuchon marked this pull request as ready for review November 18, 2024 08:51
@frascuchon frascuchon requested a review from jfcalvo November 18, 2024 08:52
@frascuchon frascuchon changed the title [REFACTOR][ENHANCEMENT] argilla server: better oauth2 integration [REFACTOR][ENHANCEMENT] argilla server: better OAuth2 integration Nov 18, 2024
frascuchon and others added 3 commits November 19, 2024 15:57
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

This PR adds logic to the sign-in page to include a default OAuth
provider button. So, users can sign using whatever provider is defined.

Refs #5689

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Improvement (change adding some improvement to an existing
functionality)
- Documentation update

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- 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
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)

---------

Co-authored-by: Leire Aguirre <[email protected]>
Copy link

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

frascuchon and others added 6 commits November 21, 2024 09:25
# Description
<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that are required for this change. -->

Docs for changes included in
#5689

**Type of change**
<!-- Please delete options that are not relevant. Remember to title the
PR according to the type of change -->

- Documentation update

**How Has This Been Tested**
<!-- Please add some reference about how your feature has been tested.
-->

**Checklist**
<!-- Please go over the list and make sure you've taken everything into
account -->

- 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
- I confirm My changes generate no new warnings
- I have added tests that prove my fix is effective or that my feature
works
- I have added relevant notes to the CHANGELOG.md file (See
https://keepachangelog.com/)
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.

2 participants