Commit 2e53c473 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Scission config unicaen-oauth et zf-oauth2.

parent c856926b
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
<?php

return array(
    'zf-oauth2' => array(
        'db' => array(
            'dsn'      => 'insert here the DSN for DB connection', // for example "mysql:dbname=oauth2_db;host=localhost"
            'username' => 'insert here the DB username',
            'password' => 'insert here the DB password',
        ),
        'allow_implicit'  => true, // not default (set to true when you need to support browser-based or mobile apps)
        'access_lifetime' => 3600, // default (set a value in seconds for access tokens lifetime)
        'enforce_state'   => true,  // default
        'storage'         => 'ZF\OAuth2\Adapter\PdoAdapter', // service name for the OAuth2 storage adapter
        'options' => array(
            'always_issue_new_refresh_token' => true,
        ),
    ),
);
 No newline at end of file
+0 −11
Original line number Diff line number Diff line
@@ -20,15 +20,4 @@ return array(
         'password'            => "xxxxxxxxxxxx",
         'accountFilterFormat' => "(&(objectClass=posixAccount)(supannAliasLogin=%s))",
     ),
    'zf-oauth2' => array(
        'db' => array(
            'dsn'      => 'insert here the DSN for DB connection', // for example "mysql:dbname=oauth2_db;host=localhost"
            'username' => 'insert here the DB username',
            'password' => 'insert here the DB password',
        ),
        'allow_implicit'  => false, // default (set to true when you need to support browser-based or mobile apps)
        'access_lifetime' => 3600, // default (set a value in seconds for access tokens lifetime)
        'enforce_state'   => true,  // default
        'storage'         => 'ZF\OAuth2\Adapter\PdoAdapter', // service name for the OAuth2 storage adapter
    ),
);
 No newline at end of file