ventureleap/leap-one-php-sdk

There is no license information available for the latest version (dev-main) of this package.

Installs: 4 163

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:symfony-bundle

dev-main 2021-12-01 14:56 UTC

This package is auto-updated.

Last update: 2024-04-29 04:59:32 UTC


README

Installation

  1. Require the bundle via:
composer require ventureleap/leap-one-php-sdk dev-main
  1. Add the following variables to your .env.local:
LEAP_ONE_ENDPOINT_URL='https://api-test.leap1.de:8000'
LEAP_ONE_APP_ID='<your-app-id>'
LEAP_ONE_APP_SECRET='<your-app-id>'
  1. (optional) Add the routes
    leap_one_php_sdk:
        resource: "@LeapOnePhpSdkBundle/Resources/config/routes.yaml"
        prefix:   /
  1. (optional) Modify your security config file This part requires that you already implemented the logic for using users from the LEAP.one User Service.
        encoders:
            VentureLeap\LeapOnePhpSdk\Model\User\User:
                algorithm: auto
        providers:
            customer_provider:
                id: VentureLeap\LeapOnePhpSdk\Services\User\UserProvider
        firewalls:
            dev:
                pattern: ^/(_(profiler|wdt)|css|images|js)/
                security: false
            main:
                pattern: /
                anonymous: true
                lazy: true
                guard:
                    authenticators:
                        - VentureLeap\LeapOnePhpSdk\Services\Security\LoginFormAuthenticator
                logout:
                    path: leap_one_user_logout