Skip to content

Allow route name for callback uri #331

@benrowe-chuffed

Description

@benrowe-chuffed

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions