PHPackages                             itmm/sso - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. itmm/sso

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

itmm/sso
========

Package untuk integrasi dengan SSO mmart

v3.0.0(2mo ago)0319MITPHPPHP ^8.2

Since Jun 12Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/itmmganteng/sso-integration)[ Packagist](https://packagist.org/packages/itmm/sso)[ RSS](/packages/itmm-sso/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (20)Used By (0)

SSO Intergration
================

[](#sso-intergration)

Package ini digunakan untuk melakukan integrasi sistem Single Sign On M Mart.

Installation
------------

[](#installation)

Setelah melakukan pembuatan project laravel, silahkan gunakan langkah-langkah berikut untuk melakukan instalasi:

### Via composer

[](#via-composer)

1. `Cd` ke Project Laravel
2. Install package `itmm/sso` menggunakan perintah:

```
composer require itmm/sso

```

3. Daftarkan Provider Berikut pada `config/app.php`

```
'providers' => [
    ...,
    Itmm\Sso\SsoServiceProvider::class,
]

```

4. Jalankan perintah berikut pada command line

```
composer dump-autoload

```

atau

```
composer du

```

5. Publish component package `itmm/sso` menggunakan perintah:

```
php artisan vendor:publish --tag=sso-components --force

```

6. Tambahkan script berikut untuk mendaftarkan middleware `VerifySso` dan `AuthenticatedSso` pada `app/Http/Kernel.php`

```
protected $routeMiddleware = [
    ...
    'verified.sso' => \App\Http\Middleware\VerifySso::class,
    'authenticated.sso' => \App\Http\Middleware\AuthenticatedSso::class,
];

```

7. `SSO APP` (Optional) Jalankan perintah berikut pada command line jika belum membuat keys passport pada SSO APP

```
php artisan passport:keys

```

8. `SSO APP` Jalankan perintah berikut pada command line untuk membuat client

```
php artisan passport:client

```

9. `SSO APP` Ikuti intruksi berikut saat menjalakan command line step ke 7

```
User Id: # Bisa di skip dengan tekan "Enter" langsung
Name: [nama-aplikasi] # Contoh: M Mart Application
Redirect Request: [http:// or https://][url-aplikasi]/callback # Contoh: https://application.m-mart.co.id/callback

```

10. `SSO APP` Setelah mengikuti intruksi tersebut akan muncul `client id` dan `client secret` seperti dibawah. Simpan `client id` dan `client secret` untuk digunakan pada `.env` file pada step ke 12

```
New client created successfully.
Client ID: 1
Client secret: ********************

```

11. `SSO APP` Perbarui data client yang baru saja di buat pada database. Perbarui pada kolom `app_id` menjadi id dari aplikasi anda pada SSO
12. `SSO APP` Pastikan tipe login dari aplikasi sudah diperbarui ke menggunakan passport
13. Pada file `.env` tambahkan beberapa environment berikut yang berisikan credential SSO

```
SSO_URL=[sso-url] # Contoh: https://sso.m-mart.co.id
SSO_API_URL=[sso-api-url] # Contoh: https://sso.m-mart.co.id
SSO_CLIENT_ID=[passport-client-id]
SSO_CLIENT_SECRET=[passport-client-secret]

```

14. Pada file `.env` tambahkan beberapa environment berikut yang berisikan credential Aplikasi

```
APP_ID=[app-id-dari-sso]
APP_CALLBACK_URL=[app-callback-url] # Contoh: https://application.m-mart.co.id/callback
APP_LOGIN_URL=[app-auth-url] # Contoh: https://application.m-mart.co.id/sso/auth
APP_ROUTE_HOME_NAME=[home-route-name] # Contoh: home

```

15. Jalankan script berikut untuk menyegarkan cache pada aplikasi

```
php artisan optimize:clear

```

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance84

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~55 days

Recently: every ~89 days

Total

19

Last Release

76d ago

Major Versions

v1.0.2 → v2.0.12025-02-25

v2.0.12 → v3.0.02026-02-23

PHP version history (2 changes)v1.0.2PHP ^7.2|^8.0

v3.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/362952acb1b988b42cae20227cdf551347dfdd563d2e0fd019864db9530e2133?d=identicon)[itmm](/maintainers/itmm)

---

Top Contributors

[![dwisupartama](https://avatars.githubusercontent.com/u/52822883?v=4)](https://github.com/dwisupartama "dwisupartama (15 commits)")[![itmmganteng](https://avatars.githubusercontent.com/u/136292360?v=4)](https://github.com/itmmganteng "itmmganteng (6 commits)")

### Embed Badge

![Health badge](/badges/itmm-sso/health.svg)

```
[![Health](https://phpackages.com/badges/itmm-sso/health.svg)](https://phpackages.com/packages/itmm-sso)
```

###  Alternatives

[google/auth

Google Auth Library for PHP

1.4k272.7M162](/packages/google-auth)[thenetworg/oauth2-azure

Azure Active Directory OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2509.6M48](/packages/thenetworg-oauth2-azure)[stevenmaguire/oauth2-keycloak

Keycloak OAuth 2.0 Client Provider for The PHP League OAuth2-Client

2275.9M27](/packages/stevenmaguire-oauth2-keycloak)[robsontenorio/laravel-keycloak-guard

🔑 Simple Keycloak Guard for Laravel

5161.1M3](/packages/robsontenorio-laravel-keycloak-guard)[patrickbussmann/oauth2-apple

Sign in with Apple OAuth 2.0 Client Provider for The PHP League OAuth2-Client

1132.5M6](/packages/patrickbussmann-oauth2-apple)[wp-graphql/wp-graphql-jwt-authentication

JWT Authentication for WPGraphQL

361118.4k1](/packages/wp-graphql-wp-graphql-jwt-authentication)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
