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

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

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

Comments

@weierophinney
Copy link
Contributor

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?


Originally posted by @tempfirstuser at zfcampus/apigility-documentation#88

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