Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
#2858706: Setting relative path for public and private keys isn't supported made it possible to save relative paths for private and public keys in module's settings, however such keys aren't properly discovered by League server and it fails an error:
LogicException: Key path "file://../keys/private.key" does not exist or is not readable in League\OAuth2\Server\CryptKey->__construct()
Proposed resolution
Translate relative file paths to absolute, but do this just before sending them to vendor classes.
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#2 | 2883828-2.patch | 1.18 KB | blazey |
|
Comments
Comment #2
blazey CreditAttribution: blazey at Amazee Labs commentedAttaching patch.
Comment #3
blazey CreditAttribution: blazey at Amazee Labs commentedComment #5
e0ipsoThanks for the patch!