Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

An error occurred during execution #158

Open
mahabub398 opened this issue Feb 2, 2017 · 1 comment
Open

An error occurred during execution #158

mahabub398 opened this issue Feb 2, 2017 · 1 comment

Comments

@mahabub398
Copy link

Hello i installed as documented

  1. update application.config
    'modules' => array(
    'Application',
    'ZF\ApiProblem',
    'ZF\ContentNegotiation',
    'ZF\OAuth2',
    ),

  2. update module.config.php in /vendor/zf-campus/zf-oauth2/config/oauth2.local.php
    return array(
    'zf-oauth2' => array(
    'db' => array(
    'dsn' => 'mysql:dbname=test2;host=localhost', // for example "mysql:dbname=oauth2_db;host=localhost"
    'username' => 'root',
    'password' => 'abc123',
    ),
    'allow_implicit' => true, // 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
    ),
    );

  3. update module.config.php in /vendor/zf-campus/zf-oauth2/config/module.config.php
    'service_manager' => [
    'aliases' => [
    // Provider\UserId::class => Provider\UserId\AuthenticationService::class,
    'ZF\OAuth2\Provider\UserId' => 'ZF\OAuth2\Provider\UserId\AuthenticationService',
    ],

  4. i create the database and entries

  5. http --auth testclient:testpass -f POST http://127.0.0.1/test6/public/oauth grant_type=client_credentials

But when i run the http it's give me error
An error occurred during execution; please try again later.

Could you tell me what i miss??

Thanks for help.

@weierophinney
Copy link
Member

This repository has been closed and moved to laminas-api-tools/api-tools-oauth2; a new issue has been opened at laminas-api-tools/api-tools-oauth2#7.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants