Skip to content

Add current_namespace to ID callback controller #411

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

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

gpeng
Copy link
Contributor

@gpeng gpeng commented Nov 2, 2023

Context

We add a namespace to the DfE Analytics web request payload to allow us to differentiate between Check and AYTQ requests. That is done in the service specific base controllers but the omniauth callback controller for AYTQ doesn't use that and so wasn't setting the namespace and consequently requests to /qualifications/users/auth/identity/callback aren't namespaced in BigQuery.

Changes proposed in this pull request

Set the namespace explicitly in the controller.

The qualifications ID callback controller doesn't inherit from
QualificationsInterfaceController so the analytics namespace isn't being
set.

The omniauth_callbacks_controller doesn't require any of the other
methods from that base controller so just add the namespace explicitly.
@gpeng gpeng force-pushed the add-namespace-for-auth-failures branch from 8c49eb1 to 7faf16f Compare November 2, 2023 13:59
@gpeng
Copy link
Contributor Author

gpeng commented Nov 2, 2023

Missing namespace - AYTQ

@gpeng gpeng merged commit c3eac04 into main Nov 3, 2023
@gpeng gpeng deleted the add-namespace-for-auth-failures branch November 3, 2023 12:40
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