2017 © Pedro Peláez
 

symfony-bundle wcf-sessions-auth-bundle

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

image

xanily/wcf-sessions-auth-bundle

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  • Sunday, July 8, 2018
  • by AliveShiro
  • Repository
  • 1 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

WCF Sessions Auth Bundle

This allows you to use WCF as a authentication provider in Symfony >= 4 and share its sessions., (*1)

Configuration

File config/packages/wcf_sessions_auth.yaml: ```yaml wcf_sessions_auth: session: cookie_prefix: "wsc_" login_page: "/login" target_page: "/" force_login: false ip_check: 0 database: entity_manager: "forum" table_prefix: "wcf1_", (*2)

roles: 1: ROLE_ANYONE 2: ROLE_GUEST 3: ROLE_USER 4: ROLE_ADMIN ```, (*3)

File config/packages/security.yaml: ```yaml security: providers: wcf: id: "wcf.sessionsauthbundle.wcf_user_provider", (*4)

encoders: xanily\WCFSessionsAuthBundle\Entity\WcfUser: id: wcf.sessionsauthbundle.wcf_encoder firewalls: main: anonymous: ~, (*5)

  # stateless should be set to true, or your symfony user may be stored in the session even if you logged out from the wcf instance
  stateless: true

  guard:
    authenticators:
      - "wcf.sessionsauthbundle.wcf_session_guard"
      - "wcf.sessionsauthbundle.wcf_authenticator"

    entry_point: "wcf.sessionsauthbundle.wcf_authenticator"

# Example configuration for admin only access to www.example.com/admin access_control: - { path: ^/admin, roles: [ROLE_ADMIN], host: "www.example.com" } ```, (*6)

Example config for config/packages/doctrine.yaml: ```yaml doctrine: dbal: default_connection: default, (*7)

  connections:
    default:
      driver: 'pdo_mysql'
      server_version: '5.7'
      charset: utf8mb4
      url: '%env(resolve:DATABASE_URL)%'
      schema_filter: ~^(?!wcf1_)~

    board:
      driver: 'pdo_mysql'
      server_version: '5.7'
      charset: utf8mb4
      url: '$env(resolve:BOARD_DATABASE_URL)%'

orm:
  default_entity_manager: default
  auto_generate_proxy_classes: '%kernel.debug%'

  entity_managers:
    default:
      connection: default
      naming_strategy: doctrine.ormnaming_strategy.underscore
      auto_mapping: true
      mappings:
        App:
          is_bundle: false
          type: annotation
          dir: '%kernel.project_dir%/src/Entity'
          prefix: 'App\Entity'
          alias: App

    board:
      connection: board
      mappings:
        WCFSessionsAuthBundle: ~

```, (*8)

The Versions

08/07 2018

dev-master

9999999-dev https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

08/07 2018

2.0.2

2.0.2.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

08/07 2018

2.0.1

2.0.1.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

08/07 2018

2.0.0

2.0.0.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

27/06 2018

1.0.9

1.0.9.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

27/06 2018

1.0.8

1.0.8.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration

27/06 2018

1.0.7

1.0.7.0 https://www.faldoria.de

A symfony bundle that provides symfony the ability to integrate and share sessions with WCF and use WCF as the authentication provider.

  Sources   Download

MIT

The Requires

 

The Development Requires

bridge wcf intergration