Download the PHP package markocupic/contao-oauth2-client without Composer
On this page you can find all versions of the php package markocupic/contao-oauth2-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download markocupic/contao-oauth2-client
More information about markocupic/contao-oauth2-client
Files in markocupic/contao-oauth2-client
Download markocupic/contao-oauth2-client
More information about markocupic/contao-oauth2-client
Files in markocupic/contao-oauth2-client
Vendor markocupic
Package contao-oauth2-client
Short Description Contao OAuth2 Client
License GPL-3.0-or-later
Package contao-oauth2-client
Short Description Contao OAuth2 Client
License GPL-3.0-or-later
Keywords contaooauth2 wraper plugin
Please rate this library. Is it a good library?
Informations about the package contao-oauth2-client
Contao OAuth2 Client
This extension serves as a base plugin for OAuth2 Login Bundles like contao-github-login or contao-azure-login and contains a backend and frontend authenticator.
https://github.com/user-attachments/assets/f86735dc-f535-4908-98e3-b423c192a523
Follow these steps to create your custom oauth2-login plugin.
- Create a bundle and name it
vendorname/contao-***-login
- In your composer require 'markocupic/contao-oauth2-client', the OAuth base extension
league/oauth2-github
an e.g.league/oauth2-client
. Have a look at knpuniversity/oauth2-client-bundle to find the client library of your choice. - Create for your backend and frontend login the
***BackendClientFactory
class (e.g. GoogleBackendClientFactory) and***FrontendClientFactory
class (e.g. GoogleFrontendClientFactory). Both classes have to extendMarkocupic\ContaoOAuth2Client\OAuth2\Client\AbstractClientFactory
. - As client name you should choose something like this:
github_frontend
orgoogle_backend
. Use only letters and the underscore. - Create your button generator class
ButtonGenerator
that has to implementMarkocupic\ContaoOAuth2Client\ButtonGenerator\ButtonGeneratorInterface
. - If the Contao user is not identified by the claim
email
, you have to write your own token handler that has to implementMarkocupic\ContaoOAuth2Client\OAuth2\Token\TokenHandlerInterface
. - Create your
Extension
andConfiguration
class in thesrc/DependencyInjection
folder. - Create your button and store it in the templates/backend directory of your bundle.
- Create the frontend template
mod_login_***.html.twig
that extends@MarkocupicContaoOAuth2Client/frontend/modules/_mod_login_oauth2_base.html.twig
and store it undercontao\templates\modules\mod_login_***.html.twig
. - Create the login button component and store it in under
templates\component\_login_button.htl.twig
.
All versions of contao-oauth2-client with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
contao/core-bundle Version ^5.3
league/oauth2-client Version ^2.7
markocupic/contao-twig-assets Version ^1.1
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/security-core Version ^6.4|| ^7.0
symfony/security-http Version ^6.4 || ^7.0
contao/core-bundle Version ^5.3
league/oauth2-client Version ^2.7
markocupic/contao-twig-assets Version ^1.1
symfony/config Version ^6.4 || ^7.0
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-foundation Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/security-core Version ^6.4|| ^7.0
symfony/security-http Version ^6.4 || ^7.0
The package markocupic/contao-oauth2-client contains the following files
Loading the files please wait ....