Download the PHP package mixu/sso-auth without Composer

On this page you can find all versions of the php package mixu/sso-auth. 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 sso-auth

Mixu SSO Auth Package

Sistem SSO (Single Sign-On) authentication lengkap untuk Laravel dengan fitur security monitoring, session binding, dan activity tracking.

📋 Fitur Utama

🚀 Instalasi

1. Install via Composer

2. Publish Configuration & Migrations

3. Setup Environment Variables

Tambahkan di file .env:

4. Run Migrations

⚙️ Konfigurasi

Service Provider Otomatis

Package akan secara otomatis terdaftar melalui package auto-discovery. Jika tidak, tambahkan di config/app.php:

Catatan penting: sejak Laravel 11 paket tidak lagi mengandalkan file Console/Kernel.php. Jadwal (schedule) didefinisikan di provider atau routes/console.php aplikasi. lihat bagian berikut untuk detail.

Register Middleware

Daftarkan middleware di bootstrap/app.php atau app/Http/Kernel.php milik aplikasi (package tidak memerlukan file kernel sendiri):

📖 Cara Penggunaan

1. Setup Routes

Routes sudah otomatis terdaftar:

2. Protect Routes dengan Middleware

3. Role & Area-Based Access Control

4. Menggunakan Service di Controller

📆 Menjadwalkan Rebuild Statistik

Perintah security:stats menghitung ulang statistik keamanan. Paket akan mendaftarkannya otomatis melalui service provider, sehingga tidak perlu kode di Kernel.php.

Pastikan aplikasi memanggil scheduler setiap menit (cron):

Jika ingin mengontrol sendiri jadwal, tambahkan snippet berikut di routes/console.php aplikasi:


use Mixu\SSOAuth\Services\SecurityMonitoringService;

class DashboardController extends Controller { public function __construct( private SSOAuthService $sso, private SecurityMonitoringService $security ) {}

public function index()
{
    // Get user dan token dari session
    $user = auth()->user(); // atau request()->session()->get('sso_user')

    // Check token masih valid
    if (!$this->sso->isTokenValid($user['access_token'])) {
        return redirect()->route('auth.login');
    }

    // Get security stats
    $stats = $this->security->getSecurityStats(30);

    return view('dashboard', compact('stats'));
}

} env AUTH_BASE_URL=https://auth.example.com AUTH_CLIENT_ID=your-id AUTH_CLIENT_SECRET=your-secret AUTH_REDIRECT_URI=http://yourapp.test/auth/callback



### Token Exchange Failed

**Error:** "Tukar authorization code ke access token gagal"

**Solution:** Periksa:
1. `AUTH_BASE_URL` benar
2. `AUTH_CLIENT_ID` dan `AUTH_CLIENT_SECRET` benar
3. `AUTH_REDIRECT_URI` sama dengan di SSO Server
4. Network connectivity ke SSO Server

### Session IP Mismatch

**Error:** "Your session was accessed from a different location"

**Solution:** User mengakses dari IP berbeda. Normal jika:
- Mobile user pindah dari wifi ke cellular
- User di behind proxy/VPN yang berubah

Jika perlu melonggarkan, disable middleware `validate.session.ip`.

## 📝 License

MIT License. See LICENSE file for details.

## 🤝 Contributing

Contributions welcome! Silakan buat issue atau pull request.

## 📧 Support

Email: [email protected]
Website: https://mixu.io

All versions of sso-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0 || ^12.0 || ^13.0
illuminate/database Version ^11.0 || ^12.0 || ^13.0
illuminate/auth Version ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^11.0 || ^12.0 || ^13.0
illuminate/contracts Version ^11.0 || ^12.0 || ^13.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 mixu/sso-auth contains the following files

Loading the files please wait ...