goldenplanetdk/gpp-app-bundle

Symfony GPPAppBundle

Installs: 2 416

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 10

Forks: 0

Open Issues: 0

Type:symfony-bundle

5.0.0 2024-04-30 16:57 UTC

This package is not auto-updated.

Last update: 2024-05-14 17:10:09 UTC


README

Configuration add to

config.yml

golden_planet_gpp_app:
    api:
        app_key: '%env(API_KEY)%'
        app_secret: '%env(API_SECRET)%'
        app_scope: '%env(API_SCOPE)%'
    app:
        redirect_url: '%env(REDIRECT_URL)%'
        uninstall_url: '%env(UNINSTALL_URL)%'

routing.yml

gpp_app:
    resource: "@GoldenPlanetGPPAppBundle/Resources/config/routing.yml"
    prefix:   /

AppKernel.php

    new GoldenPlanet\GPPAppBundle\GoldenPlanetGPPAppBundle(),

env(API_KEY):
env(API_SECRET):
env(API_SCOPE):
env(REDIRECT_URL): http://obb.docker:8888/app/gpp/oauth/authorize
env(UNINSTALL_URL): http://obb.docker:8888/app/gpp/oauth/unauthorize

security.yml

    firewalls:

        app-install:
            pattern:  ^/app/gpp/
            stateless: true
            anonymous: true
        
        secured_area:
            pattern:    ^/
            stateless: false
            simple_preauth:
                authenticator: GoldenPlanet\GPPAppBundle\Security\HmacAuthenticator
            provider: store
            
    access_control:

        - { path: ^/app/gpp/,     roles: IS_AUTHENTICATED_ANONYMOUSLY }
        - { path: ^/,  roles: IS_AUTHENTICATED_FULLY  }