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

CommentFileSizeAuthor
#2 2883828-2.patch1.18 KBblazey
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

blazey created an issue. See original summary.

blazey’s picture

Assigned: blazey » Unassigned
Status: Active » Needs review
FileSize
1.18 KB

Attaching patch.

blazey’s picture

Issue summary: View changes

  • e0ipso committed 1a62ce4 on 8.x-2.x authored by blazey
    fix(Interoperability): Use relative paths for keys in composer project...
e0ipso’s picture

Status: Needs review » Fixed

Thanks for the patch!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.