PHPackages                             antwerpes/socialite-doccheck - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. antwerpes/socialite-doccheck

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

antwerpes/socialite-doccheck
============================

DocCheck Login Provider for Laravel Socialite

2.0.0(1mo ago)169[3 PRs](https://github.com/antwerpes/socialite-doccheck/pulls)MITPHPPHP ^8.0|^8.1|^8.2|^8.3|^8.4CI failing

Since Jun 27Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/antwerpes/socialite-doccheck)[ Packagist](https://packagist.org/packages/antwerpes/socialite-doccheck)[ Docs](https://github.com/antwerpes/socialite-doccheck)[ RSS](/packages/antwerpes-socialite-doccheck/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (10)Used By (0)

Socialite DocCheck
==================

[](#socialite-doccheck)

[![Latest Version on Packagist](https://camo.githubusercontent.com/8d1190ee9a93bd5f56072c76a4b263e10359f069631d843728b2271dcb643d0f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616e747765727065732f736f6369616c6974652d646f63636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/antwerpes/socialite-doccheck)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/0680dc001503601cde80d7e8c14ebc0a99dd83413c59922ca65de508ea486c55/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f616e747765727065732f736f6369616c6974652d646f63636865636b2f6c696e742e796d6c3f6272616e63683d6d6173746572)](https://github.com/antwerpes/socialite-doccheck/actions?query=workflow%3Alint+branch%3Amaster)[![Total Downloads](https://camo.githubusercontent.com/c07b756b07c1f54229b7e8a7bc0fb6109c3c520fc0eaa25980fae75035534244/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e747765727065732f736f6369616c6974652d646f63636865636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/antwerpes/socialite-doccheck)

[Laravel Socialite](https://laravel.com/docs/10.x/socialite) provider for the DocCheck Login. Compatible with both economy and business licenses.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require antwerpes/socialite-doccheck
```

Update your services configuration (`config/services.php`) with the following entry:

```
'doccheck' => [
    'client_id' => env('DOCCHECK_CLIENT_KEY'),
    'client_secret' => env('DOCCHECK_CLIENT_SECRET'),
    'redirect' => env('DOCCHECK_REDIRECT_URI'),
    'language' => env('DOCCHECK_LANGUAGE', 'de'),
    'template' => env('DOCCHECK_TEMPLATE', 'fullscreen_dc'),
    'license' => env('DOCCHECK_LICENSE', 'economy'),
],
```

Usage
-----

[](#usage)

After setting up the environment variables (see configuration above), you may use this provider as any other Socialite provider, see also [Socialite documentation](https://laravel.com/docs/10.x/socialite). The user object returned by the provider differs by license. For the `economy` license, only an ID will be present. For the `business` license all other fields will also be present.

Example code:

```
