Skip to content

An error occurred during execution #7

@weierophinney

Description

@weierophinney

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.


Originally posted by @mahabub398 at zfcampus/zf-oauth2#158

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions