Download the PHP package notrel/laravel-wso2is without Composer

On this page you can find all versions of the php package notrel/laravel-wso2is. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-wso2is

Laravel WSO2 Identity Server

A Laravel package for integrating with WSO2 Identity Server, providing OAuth2 authentication, user management, SCIM2 API access, and convenient middleware for session management.

Features

Installation

You can install the package via composer:

The package will automatically register its service provider.

Configuration

Add your WSO2IS configuration to your config/services.php file:

Then update your .env file:

Usage

Authentication with Request Classes (Recommended)

The package provides convenient request classes similar to Laravel WorkOS. You create the routes and controllers in your application:

1. Create Your Authentication Routes

2. Or Create a Controller

3. Update Your Configuration

Make sure your redirect URI points to your callback route:

Session Middleware

Protect your routes with automatic token validation and refresh by adding the middleware to your routes:

User Model

The package includes a rich User model with role and group checking:

Using the HTTP Client (Advanced)

User Management

Group Management

Application Management

OAuth2 Authentication Flow

The package provides request classes to handle OAuth2 authentication flows. You'll need to set up your own routes and controllers:

To initiate the OAuth2 flow, redirect users to your WSO2IS authorization endpoint:

Testing

Run the test suite using Pest:

Or directly:

Integration Testing with Real WSO2IS

To test against a real WSO2 Identity Server instance:

1. Setup WSO2IS Application

  1. Start WSO2 Identity Server
  2. Access Management Console: https://localhost:9443/carbon
  3. Login with admin credentials
  4. Create a new OAuth application:
    • Go to Main > Identity > Service Providers
    • Click Add and create a new service provider
    • Configure Inbound Authentication Configuration > OAuth/OpenID Connect
    • Add required scopes: internal_user_mgt_*, internal_group_mgt_*, internal_application_mgt_*
    • Note down the Client ID and Client Secret

2. Configure Test Environment

Edit .env.integration with your WSO2IS details:

3. Run Integration Tests

Integration tests cover:

Note: Integration tests require a properly configured WSO2IS instance with appropriate OAuth scopes. Copy .env.integration.example to .env.integration and configure your WSO2IS instance details. All tests (authentication, user management, and group management) are enabled.

Tests automatically clean up created resources after each test.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email the repository maintainer instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-wso2is with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/support Version ^11.0|^12.0
guzzlehttp/guzzle Version ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package notrel/laravel-wso2is contains the following files

Loading the files please wait ...