-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
Review app deployed to https://cpd-ecf-review-5386-web.test.teacherservices.cloud |
e532d0f
to
f46ca28
Compare
@@ -50,6 +50,6 @@ def check_access_scope | |||
end | |||
|
|||
def access_scope |
There was a problem hiding this comment.
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?
10442a2
to
f761ecc
Compare
@@ -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") |
There was a problem hiding this comment.
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
f761ecc
to
814e24c
Compare
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.