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.
Purpose
Implementation
We need to cache calls out to the openid-configuration url as they’ll naturally be slow.
Psuedocode
$cachedBuilder = new MetadataProviderBuilder();
$cachedBuilder->setCache($ {INSTANCE_OF_\Psr\SimpleCache\CacheInterface}) // APCU via laminas-cache
->setTtl(60); //seconds? minutes? we probably want an hour
$issuer = (new IssuerBuilder())
->setMetadataProviderbuilder($cachedBuilder)
->build('http://mock-one-login/.well-known/openid-configuration'); // protocol+host from config
AC
PSR-16 cache to be used as with
Fixes UML-3080
Approach
Explain how your code addresses the purpose of the change
Learning
Any tips and tricks, blog posts or tools which helped you. Plus anything notable you've discovered about the Use a Lasting Power of Attorney service
Checklist
[ ] I have added relevant logging with appropriate levels to my code[ ] New event_codes have been documented on the [wiki page]~~(https://opgtransform.atlassian.net/wiki/spaces/LSML2/pages/3277881441/Understanding+the+event+logs)[ ] I have updated documentation (Confluence/GitHub wiki/tech debt doc) where relevant[ ] I have added welsh translation tags and updated translation files[ ] I have run an accessibility tool on any pages I have made changes to and fixed any issues found[ ] I have notified the Interaction Designer of any content changes so that appropriate screenshots/flow diagram changes can be made