Skip to content

Commit ca4b478

Browse files
committed
Don't override oauth2_provider settings dict
1 parent 7426499 commit ca4b478

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

dandiapi/settings.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ def mutate_configuration(configuration: type[ComposedConfiguration]):
202202

203203

204204
class HerokuStagingConfiguration(HerokuProductionConfiguration):
205-
# The staging configuration enables wildcards in OAuth redirect URIs in order
206-
# to support Netlify deploy previews.
207-
OAUTH2_PROVIDER = {
208-
'ALLOW_URI_WILDCARDS': True,
209-
}
205+
@staticmethod
206+
def mutate_configuration(configuration: type[ComposedConfiguration]):
207+
# The staging configuration enables wildcards in OAuth redirect URIs in order
208+
# to support Netlify deploy previews.
209+
configuration.OAUTH2_PROVIDER['ALLOW_URI_WILDCARDS'] = True

0 commit comments

Comments
 (0)