Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred during execution #7

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

An error occurred during execution #7

weierophinney opened this issue Dec 31, 2019 · 0 comments

Comments

@weierophinney
Copy link
Contributor

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

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

No branches or pull requests

1 participant