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

[CPDLP-3843] Remove token access for NPQ (NPQ Post Separation Cleanup) #5386

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leandroalemao
Copy link
Contributor

@leandroalemao leandroalemao commented Dec 19, 2024

Context

Now we’ve removed all the data we need to remove access to NPQ tokens in ECF in the API.

Changes proposed in this pull request

Remove the NPQ API token setup from the ECF API.

Copy link

Review app deployed to https://cpd-ecf-review-5386-web.test.teacherservices.cloud

@@ -50,6 +50,6 @@ def check_access_scope
end

def access_scope
Copy link
Collaborator

@cwrw cwrw Dec 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

having a look at controllers like DataStudio::SchoolRolloutController these have:

def access_scope
  ApiToken.where(private_api_access: true)
end

Which we want to keep. Can we keep this as is and keep the level the same everywhere and just remove the NPQ access please instead?

@@ -238,15 +238,11 @@
# The tokens below have different unhashed version to avoid worrying about clever cryptographic attacks
if Rails.env.review?
EngageAndLearnApiToken.find_or_create_by!(hashed_token: "dfce9a34c6f982e8adb4b903f8b6064682e6ad1f7858c41ed8a0a7468abc8896")
NPQRegistrationApiToken.find_or_create_by!(hashed_token: "1dae3836ed90df4b796eff1f4a4713247ac5bc8a00352ea46eee621d74cd4fcf")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can also delete NPQRegistrationApiToken class as well? let me know what you think

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.

4 participants