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

'ZF\\OAuth2' doesn't trigger when url /api/rest/status is opened in browser #88

Open
tempfirstuser opened this issue Aug 29, 2019 · 1 comment

Comments

@tempfirstuser
Copy link

tempfirstuser commented Aug 29, 2019

Accordingly to this https://github.com/zfcampus/apigility-documentation/blob/master/auth/user-differentiation.md documentation when I set config:

'zf-mvc-auth' => [
        'authentication' => [
            'map' => [
                'DbApi\\V1'  => 'oauth2',
                'ZF\\OAuth2' => 'session',
            ],

neither 'ZF\OAuth2' nor SeesionAdapter doesn't trigger if I open rest (/api/rest/status) or rpc urls in browser. It seems, that bshaffer's OAuth2 methods triggered directly in this case. 'ZF\OAuth2' controller and SessionAdapter is triggered only when I open url /oauth in the browser.
Also, I have set 'deny_by_default' to 'true'.

Do I misunderstood something?

@weierophinney
Copy link
Member

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

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