Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow route name for callback uri #331

Open
benrowe-chuffed opened this issue Nov 9, 2023 · 0 comments
Open

Allow route name for callback uri #331

benrowe-chuffed opened this issue Nov 9, 2023 · 0 comments

Comments

@benrowe-chuffed
Copy link

Instead of providing a static callback URI in the config, it would be nice to calculate this value dynamically based on a route name:

So instead of:

'credentials' => [
        //Required:
        'callbackURI' => env('SALESFORCE_CALLBACK_URI'),
],

you could do this instead:

'credentials' => [
        //Required:
        'callbackRoute' => 'web.salesforce.callback',
],

Then in your routes you can register a route with this name.

Route::get(...)->name('web.salesforce.callback');

The advantage of this is being able to dynamically calculate the callback URI, instead of having to create new SALESFORCE_CALLBACK_URI values for every environment.

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

No branches or pull requests

1 participant