PHPackages                             cidaas/oauth2-cidaas - 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. cidaas/oauth2-cidaas

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

cidaas/oauth2-cidaas
====================

Cidaas OAuth 2.0 and OpenID connect Client SDK

v1.3.4(1y ago)812.3k↓25%7MITPHPPHP ^7.4 || ^8.0

Since Jan 31Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Cidaas/cidaas-sdk-php)[ Packagist](https://packagist.org/packages/cidaas/oauth2-cidaas)[ RSS](/packages/cidaas-oauth2-cidaas/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (11)Used By (0)

[![Logo](logo.jpg)](logo.jpg)

About cidaas:
-------------

[](#about-cidaas)

[cidaas](https://www.cidaas.com)is a fast and secure Cloud Identity &amp; Access Management solution that standardises what’s important and simplifies what’s complex.

Feature set includes:
---------------------

[](#feature-set-includes)

- Single Sign On (SSO) based on OAuth 2.0, OpenID Connect, SAML 2.0
- Multi-Factor-Authentication with more than 14 authentication methods, including TOTP and FIDO2
- Passwordless Authentication
- Social Login (e.g. Facebook, Google, LinkedIn and more) as well as Enterprise Identity Provider (e.g. SAML or AD)
- Security in Machine-to-Machine (M2M) and IoT

Cidaas SDK for PHP
==================

[](#cidaas-sdk-for-php)

### Requirements

[](#requirements)

Make sure you have installed all of the following prerequisites on your development machine:

- PHP version 7.4.0 or higher
- Download and install the composer

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

[](#installation)

In order to use this sdk, you need to perform the following steps:

1. Add the cidaas repository to your composer.json configuration ```
    "repositories": [
      {
        "type": "vcs",
        "url": "https://github.com/Cidaas/cidaas-sdk-php.git"
      }
    ]

    ```
2. Install sdk dependency using composer ```
    composer require "cidaas/oauth2-cidaas:", e.g. "cidaas/oauth2-cidaas:dev-master"

    ```

Integration
-----------

[](#integration)

### Prerequisites

[](#prerequisites)

Before you can start integrating this sdk, you need the following information:

- Base URL - URL of cidaas server
- Client id - issued by cidaas to identify your application
- Client secret - issued by cidaas to identify your application
- Redirect URI - URI to redirect to after successful login

In addition to this data, you should read the documentation at  with special attention to the integration chapters.

Please note that the web server running your php application needs direct access to the base url mentioned above. If this is not possible, think about using the javascript sdk for browser side integration.

### Base communication provider

[](#base-communication-provider)

All communication is done using the php class `Cidaas\OAuth2\Client\Provider\Cidaas` (called *provider* in the following chapters). In order to be able to use this provider, you need to instantiate it with the prerequisites data mentioned above.

```
