Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

[documentation] Intro OAuth config defaults are incorrect #59

Closed
2 tasks done
neobyteUK opened this issue Apr 20, 2019 · 1 comment
Closed
2 tasks done

[documentation] Intro OAuth config defaults are incorrect #59

neobyteUK opened this issue Apr 20, 2019 · 1 comment
Labels

Comments

@neobyteUK
Copy link

neobyteUK commented Apr 20, 2019

Error received when relying on config installation default locations for oauth key files.

What the documentation says it defaults to:

    'private_key'    => __DIR__ . '/../data/oauth/private.key',
    'public_key'     => __DIR__ . '/../data/oauth/public.key',
    'encryption_key' => require __DIR__ . '/../data/oauth/encryption.key',

What it actually defaults to:

    'private_key'    => __DIR__ . '/../data/private.key',
    'public_key'     => __DIR__ . '/../data/public.key',

See:

Documentation
Code

@michalbundyra
Copy link
Member

@neobyteUK Have you seen bottom of the file?
Check this out:

// Conditionally include the encryption_key config setting, based on presence of file.
$encryptionKeyFile = getcwd() . '/data/encryption.key';
if (is_readable($encryptionKeyFile)) {
$config['encryption_key'] = require $encryptionKeyFile;
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants