{"action":"opened","issue":{"url":"https://api.github.com/repos/zfcampus/zf-oauth2/issues/117","labels_url":"https://api.github.com/repos/zfcampus/zf-oauth2/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-oauth2/issues/117/comments","events_url":"https://api.github.com/repos/zfcampus/zf-oauth2/issues/117/events","html_url":"https://github.com/zfcampus/zf-oauth2/issues/117","id":102683457,"number":117,"title":"The storage configuration for OAuth2 is missing","user":{"login":"TomHAnderson","id":493920,"avatar_url":"https://avatars.githubusercontent.com/u/493920?v=3","gravatar_id":"","url":"https://api.github.com/users/TomHAnderson","html_url":"https://github.com/TomHAnderson","followers_url":"https://api.github.com/users/TomHAnderson/followers","following_url":"https://api.github.com/users/TomHAnderson/following{/other_user}","gists_url":"https://api.github.com/users/TomHAnderson/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHAnderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHAnderson/subscriptions","organizations_url":"https://api.github.com/users/TomHAnderson/orgs","repos_url":"https://api.github.com/users/TomHAnderson/repos","events_url":"https://api.github.com/users/TomHAnderson/events{/privacy}","received_events_url":"https://api.github.com/users/TomHAnderson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-24T01:41:58Z","updated_at":"2015-08-24T01:41:58Z","closed_at":null,"body":"Continuing the work of `zfcampus/zf-oauth2-doctrine` the latest code implements the adapter through services of oauth2 in zf-mvc-auth.  When an application is properly configured this module still insists on a valid `$config['zf-oauth2']['storage']` entry.  This should not be necessary when using a service based adapter.\r\n\r\nFor this global.php configuration:\r\n```php\r\n    return array(\r\n        'zf-mvc-auth' => array(\r\n            'authentication' => array(\r\n                'map' => array(\r\n                    'DbApi\\\\V1' => 'oauth2_doctrine',\r\n                ),\r\n            ),\r\n\r\n            'authentication' => array(\r\n                'adapters' => array(\r\n                    'oauth2_doctrine' => array(\r\n                        'adapter' => 'ZF\\\\MvcAuth\\\\Authentication\\\\OAuth2Adapter',\r\n                        'storage' => array(\r\n                            'storage' => 'oauth2.doctrineadapter.default',\r\n                            'route' => '/oauth',\r\n                        ),\r\n                    ),\r\n                ),\r\n            ),\r\n        ),\r\n\r\n        'zf-oauth2' => array(\r\n            'allow_implicit' => false, // default (set to true when you need to support browser-based or mobile apps)\r\n            'access_lifetime' => 3600, // default (set a value in seconds for access tokens lifetime)\r\n            'enforce_state'  => true,  // default\r\n    //        'storage'        => 'oauth2.doctrineadapter.default',\r\n        ),\r\n    );\r\n```\r\n\r\nwithout a value for storage the title's exception is raised.  This can be easily duplicated by cloning https://github.com/API-Skeletons/doctrine-skeleton and following the instructions in the README.md file.  "}}