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

Improve oauth2 support #7

Closed
chriskapp opened this issue Apr 23, 2015 · 4 comments
Closed

Improve oauth2 support #7

chriskapp opened this issue Apr 23, 2015 · 4 comments

Comments

@chriskapp
Copy link
Member

Oauth2 support is currently available but not fully tested and documented. We need to improve the test cases and code coverage. Also we must provide a chapter in the manual howto enable oauth authentication for an API endpoint.

@mmuruev
Copy link

mmuruev commented Feb 16, 2016

So what's the status? I need auth, and how to manage it.

@chriskapp
Copy link
Member Author

If you have an access token you can use the authentication filter. If you need an OAuth2 server to issue an access token you can use the PSX\Oauth2\Provider\TokenAbstract class but this is the part which is not documented yet.

@mmuruev
Copy link

mmuruev commented Feb 17, 2016

Can I use 'regualar' session like auth to? For app UI for example. Does it provide support for this?

@chriskapp
Copy link
Member Author

Sessions are not directly supported for authentication since for API endpoints you mostly want to use OAuth2. But you can easily write your own filter or use the session inside a controller. There is also a session service to set/get values from the php session so you dont have to use $_SESSION in your controller.

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

2 participants