PHPackages                             ristekusdi/connector - 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. ristekusdi/connector

Abandoned → [ristekusdi/rbac-connector](/?search=ristekusdi%2Frbac-connector)Library[Authentication &amp; Authorization](/categories/authentication)

ristekusdi/connector
====================

IMISSU2 RBAC Connector

v2.0.6(3y ago)016MITPHPPHP ^7.2.5|^8.0.2

Since Oct 27Pushed 3y ago3 watchersCompare

[ Source](https://github.com/ristekusdi/rbac-connector)[ Packagist](https://packagist.org/packages/ristekusdi/connector)[ RSS](/packages/ristekusdi-connector/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (13)Used By (0)

RBAC Connector
==============

[](#rbac-connector)

IMISSU2 RBAC Connector with Keycloak.

Requirements
------------

[](#requirements)

1. Your client type MUST BE confidential to get client secret.
2. Enable Service Account in IMISSU2 to get data from RBAC Connector.
3. Assign roles in Service Accounts tab in client page IMISSU2.

**What is Service Account?**

> A service account is a special type of provider account (e.g. Google, Keycloak, etc) intended to represent a non-human user that needs to authenticate and be authorized to access data in provider APIs.

Setup
-----

[](#setup)

1. Create file `.env` and set value of `RBAC_CONNECTOR_HOST_URL`, `KEYCLOAK_CLIENT_ID`, and `KEYCLOAK_CLIENT_SECRET`.

```
RBAC_CONNECTOR_HOST_URL=
KEYCLOAK_CLIENT_ID=
KEYCLOAK_CLIENT_SECRET=
```

2. Install package with command below.

```
composer require ristekusdi/rbac-connector
```

Common Use Cases
----------------

[](#common-use-cases)

Here are common use cases that you need to use this package.

### Get Users and Total Users

[](#get-users-and-total-users)

```
