podcasthosting/socialiteprovider

podcaster OAuth2 Provider for Laravel Socialite

dev-master 2022-07-05 10:57 UTC

This package is auto-updated.

Last update: 2024-04-05 15:16:00 UTC


README

Laravel Socialite Provider to log in to podcaster service (www.podcaster.de)

Add this app/Providers/EventServiceProvider.php

private function bootPodcasterSocialite()
{
    $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory');
    $socialite->extend(
        'podcaster',
        function ($app) use ($socialite) {
            $config = $app['config']['services.podcaster'];
            return $socialite->buildProvider(\podcasthosting\podcaster\socialiteprovider\Provider::class, $config);
        }
    );
}

and call it from boot() method.

/**
 * Register any events for your application.
 *
 * @return void
 */
public function boot()
{
    $this->bootPodcasterSocialite();

    parent::boot();
}