-
Notifications
You must be signed in to change notification settings - Fork 809
Description
CORS support is important for security. We should figure out our CORS specification to help guide the implementation. There are currently 2 CORS related PRs, #1150 , #1229.
in #1150 the implementation uses a middleware, while the discussion has guided it toward a decorator on the views that need CORS support.
in #1229, the approach enables upstream handling of CORS using the OAuthLib implementation which defers the is_origin_allowed check to the OAuth2Validator. This approach with work for the OAuthLib provided views, but not the views that are specific to DjangoOauthToolkit like OIDC RP initiated logout.
-
I'd like to get to a consensus on the best approach, whether to lean into using the OAuth2Validator and ensure we're utilize it consistently in the DOT views, or whether to move forward with a decorator or middleware approach with our views...
-
I'd like to get to a consensus on how to make a good out of the box UX and DX that provides consistent CORS support either by implementing a base validator or decorators that are aware of the DOT model and settings.