Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds new rake tasks for fetching and validating Client Credentials Grant (CCG) tokens for appeals APIs that use OAuth
Summary
settings.yml
support these tasks:modules_appeals_api
.token_generation
.config_uri
should be the URI to the well-known configuration for the auth servermodules_appeals_api
.token_generation
.ccg
should have aclient_id
from https://developer.va.gov/onboarding/request-sandbox-access or https://dev-developer.va.gov/onboarding/request-sandbox-access, and theprivate_key_path
to the key used to generate the jwk that was submitted to the form.ccg
task generates a CCG token that has all valid scopes for the given APIappeals_api:token:hlr:ccg
task generates a token with the scopesappeals/HigherLevelReviews.read
andappeals/HigherLevelReviews.write
validate
task validates a tokensettings.yml
in Update scopes and key usage in appeals OAuth APIs #11727 (for example,appeals_api:token:hlr:validate
attempts to validate a token using the token validation key for HLR)Related issue(s)
API-22478, API-22479, API-22480, API-22481, API-22482, API-22483 are the individual tickets for each API.
Testing done
settings.local.yml
values for these tasks to teammates via keybase if anyone wants to try these out.What areas of the site does it impact?
None, only adds rake tasks.
Acceptance criteria
- [ ] I fixed|updated|added unit tests and integration tests for each feature (if applicable).- [ ] Events are being sent to the appropriate logging solution- [ ] Feature/bug has a monitor built into Datadog or Grafana (if applicable)- [ ] If app impacted requires authentication, did you login to a local build and verify all authenticated routes work as expected- [ ] I added a screenshot of the developed feature