Closed patricknomad closed 8 months ago
@omniphx & @patricknomad
⚠️ This PR make instanceURL
setting required to have filled in case of OAuthJWT
auth method.
Otherwise it throws us an MissingTokenException
in refresh/create token method.
I suggest to add it somewhere to docs.
And maybe change comment here:
https://github.com/omniphx/forrest/blob/96cbd606dcd496ce626da0353133c35ca6f49082/src/config/config.php#L80-L83
And maybe then create .env
variable eg SF_INSTANCE_URL
@wch-karol thanks for pointing this out. Just merged in a fix so that instanceURL
is no longer required (v2.18.2). The method previously used in this PR would try to retrieve an instanceURL
from the latest token (which if missing would throw the MissingTokenException
). Obviously, that would always be the case when trying to authenticate for the first time.
Unfortunately, not the best approach but also not @patricknomad's fault. Just a misleading method name.
Also, added some documentation as you suggested.
Cheers!
Update the the OAuthJWT authentication type to work for Lightning, Lightning Sandboxes and the Developer Edition.
Lightning Example
config/forrest.php
Lightning Sandbox Example
config/forrest.php
Salesforce Developer Edition Example
config/forrest.php return [