Download the PHP package bahuma/oauth2-nextcloud without Composer
On this page you can find all versions of the php package bahuma/oauth2-nextcloud. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bahuma/oauth2-nextcloud
More information about bahuma/oauth2-nextcloud
Files in bahuma/oauth2-nextcloud
Package oauth2-nextcloud
Short Description Nextcloud OAuth 2.0 Client Provider for The PHP League OAuth2-Client
License MIT
Informations about the package oauth2-nextcloud
Nextcloud Provider for OAuth 2.0 Client
This package provides Nextcloud OAuth 2.0 support for the PHP League's OAuth 2.0 Client.
This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.
Requirements
The following versions of PHP are supported.
- From PHP 7.4 to PHP 8.2
To use this package, it will be necessary to have a Nextcloud client ID and client
secret. These are referred to as {nextcloud-client-id}
and {nextcloud-client-secret}
in the documentation.
Please follow the Nextcloud instructions to create the required credentials.
Installation
To install, use composer:
Usage
Authorization Code Flow
Refreshing a Token
Now you have everything you need to refresh an access token using a refresh token:
Scopes
Nextcloud OAuth2 implementation currently does not support scoped access. This means that every token has full access to the complete account including read and write permission to the stored files. It is essential to store the OAuth2 tokens in a safe way!
Testing
Tests can be run with:
Style checks can be run with:
Credits
License
The MIT License (MIT). Please see License File for more information.