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: support Auth0 OAuth2 #2171

Merged
merged 2 commits into from
Nov 24, 2023
Merged

feat: support Auth0 OAuth2 #2171

merged 2 commits into from
Nov 24, 2023

Conversation

dpgaspar
Copy link
Owner

Description

Supports Auth0 OAuth provider

Advised config:

OAUTH_PROVIDERS = [
    {
        "name": "auth0",
        "icon": "fa-shield-halved",
        "token_key": "access_token",
        "remote_app": {
            "client_id": os.environ.get("AUTH0_KEY"),
            "client_secret": os.environ.get("AUTH0_SECRET"),
            "api_base_url": f"https://{os.environ.get('AUTH0_DOMAIN')}/oauth2/v1/",
            "client_kwargs": {"scope": "openid profile email groups"},
            "access_token_url": f"https://{os.environ.get('AUTH0_DOMAIN')}/oauth/token",
            "authorize_url": f"https://{os.environ.get('AUTH0_DOMAIN')}/authorize",
            "server_metadata_url": f"https://{os.environ.get('AUTH0_DOMAIN')}/"
                                   f".well-known/openid-configuration",
        },
    }
]

ADDITIONAL INFORMATION

  • Has associated issue:
  • Is CRUD MVC related.
  • Is Auth, RBAC security related.
  • Changes the security db schema.
  • Introduces new feature
  • Removes existing feature

Copy link

codecov bot commented Nov 24, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (ba63c5c) 79.30% compared to head (6036c23) 79.31%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2171   +/-   ##
=======================================
  Coverage   79.30%   79.31%           
=======================================
  Files          72       72           
  Lines        8970     8974    +4     
=======================================
+ Hits         7114     7118    +4     
  Misses       1856     1856           
Flag Coverage Δ
python 79.31% <100.00%> (+<0.01%) ⬆️

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.

@dpgaspar dpgaspar merged commit 59db85d into master Nov 24, 2023
14 checks passed
@dpgaspar dpgaspar deleted the feat/support-auth0 branch November 24, 2023 18:53
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.

1 participant