2017 © Pedro Peláez
 

library vanilla-integration

Gzero Vanilla Integration

image

gzero/vanilla-integration

Gzero Vanilla Integration

  • Monday, May 1, 2017
  • by AdrianSkierniewski
  • Repository
  • 2 Watchers
  • 0 Stars
  • 834 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

GZERO vanilla-integration

Vanilla forum integration package for GZERO CMS, (*1)

Table of contents

Installation

Begin by installing this package through Composer. Edit your project's composer.json file to require gzero/vanilla-integration., (*2)

"require": {
    "gzero/vanilla-integration": "^2.0",
}

Next, update Composer from the Terminal:, (*3)

composer update

Configuration

Add the service provider to platform configuration in app/config/app.php, (*4)

'Gzero\Vanilla\ServiceProvider'

Overriding configuration

In order to override some of the configuration options publish configuration file:, (*5)

php artisan config:publish gzero/vanilla-integration

Set required credentials for given service in published package config file, (*6)

PHP return [ 'forum_domain' => 'vanilla.dev', 'sso' => 'http://vanilla.dev/sso', 'client_id' => 'your_vanilla_client_id', 'secret' => 'your_vanilla_secret', ];, (*7)

Set sso url in Vanilla Forum jsConnect settings, (*8)

PHP http://dev.gzero.pl/_hidden/vanilla-sso, (*9)

How to use this integration

To make sure that user is synchronized with your GZERO CMS site, you should always use forum_url() helper to build url to all forum pages., (*10)

PHP URL::to(forum_url()); return Redirect::to(forum_url()); return Redirect::to(forum_url('categories'));, (*11)

To get very tight SSO integration with Vanilla forum, you will also want to follow these steps., (*12)

In Vanilla:

  • Change your registration method to 'Connect' to block non-SSO users from registering.
  • Set your sign-in, sign-out, and registration URLs under jsConnect's settings in your Dashboard.
  • Check "Make this connection your default signin method."
  • Set up "Sign In Url", "Register Url" and "Sign Out Url" in jsConnect integration page

In GZERO CMS:

  • Always use forum_url helper

The Versions