{"repo":"SallaApp/oauth2-merchant","free":true,"listed":false,"github":"https://github.com/SallaApp/oauth2-merchant","clone":"git clone https://github.com/SallaApp/oauth2-merchant.git","description":"The Salla OAuth Client library is designed to provide client applications with secure delegated access to Salla Merchant stores.","language":"PHP","stars":25,"topics":["salla","ecommerce","platform","oauth2"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Salla OAuth 2.0 Client This package provides Salla OAuth 2.0 support for the PHP language OAuth 2.0 Client . Explore our blogs » Report Bug · Request Feature · &lt;/Salla Developers&gt; Overview To use this package, it will be necessary to have a Salla client ID and client secret. These are referred to as {client-id} and {client-secret} in the documentation. Please follow the [Salla instructions][oauth-setup] to create the required credentials. [oauth-setup]: https://salla.dev/blog/oauth-callback-urls/ OAuth Workflow Installation You can install the package via Composer: ( back to top ) Usage Authorization Code Flow ( back to top ) Refreshing a Token Refresh tokens are only provided to applications that request offline access. You can specify offline access by passing the scope option in your getAuthorizationUrl() request. Using Salla OAuth2 Inside Laravel You can seamlessly integrate Salla OAuth2 within Laravel using the facade helper provided by the package. Here's how you can do it: First, use the facade helper in your Laravel project: To configure the OAuth2 service, set the necessary environment variables in your .env file: These settings ensure that your Laravel application can properly communicate with the Salla OAuth2 service, allowing you to handle authentication and retrieve access tokens efficiently. Using Salla OAuth2 as a Laravel Guard When integrating Salla OAuth2 for authentication, you may need to validate the merchant's access token and retrieve user informat","default_branch":null,"files":null,"tree":[],"storefront":"/r/SallaApp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/SallaApp/oauth2-merchant/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}