PHPackages                             bertugfahriozer/ci4oauth2 - 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. bertugfahriozer/ci4oauth2

ActiveLibrary

bertugfahriozer/ci4oauth2
=========================

An easy-to-use library that allows accessing and authenticating with Restful APIs using the OAuth 2 protocol. Essentially, it provides users with a secure and authorized way to access their APIs

1.1.3(2y ago)141MITPHPPHP ^7.4||^8.0

Since Oct 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/bertugfahriozer/ci4oauth2)[ Packagist](https://packagist.org/packages/bertugfahriozer/ci4oauth2)[ RSS](/packages/bertugfahriozer-ci4oauth2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (18)Used By (0)

  English Türkçe  - [Features](#features)
- [Installation](#installation)
- [Usage](#usage)
    - [Configration](#configration)
    - [Adding Filter](#adding-filter)
    - [URI Routing](#uri-routing)
    - [Simple Controller and Methods](#simple-controller-and-methods)
    - [Example Folder](#example-folder)
- [Authorization Types](#authorization-types)
    - [Authorization Code](#authorization-code)
    - [Client Credentials](#client-credentials)
    - [User Credentials](#user-credentials)
    - [Refresh Token](#refresh-token)
    - [JWT Bearer](#jwt-bearer)
        - [JWT Preparation](#jwt-preparation)
- [Contribution](#contribution)
- [License](#license)

 - [Özellikler](#%C3%B6zellikler)
- [Kurulum](#kurulum)
- [Kullanım](#kullan%C4%B1m)
    - [Ayarlar](#ayarlar)
    - [Filter Ekleme](#filter-ekleme)
    - [URI Yönlendirme](#uri-y%C3%B6nlendirme)
    - [Örnek Kullanım](#%C3%B6rnek-kullan%C4%B1m)
    - [Örnek Klasör](#%C3%B6rnek-klas%C3%B6r)
- [Yetkilendirme Türleri](#yetkilendirme-t%C3%BCrleri)
    - [Authorization Code (Yetkilendirme Kodu veri türü)](#authorization-code-yetkilendirme-kodu-veri-t%C3%BCr%C3%BC)
    - [Client Credentials (İstemci Kimlik Bilgileri)](#client-credentials-i%CC%87stemci-kimlik-bilgileri)
    - [Kullanıcı Kimlik Bilgileri (User Credentials)](#kullan%C4%B1c%C4%B1-kimlik-bilgileri-user-credentials)
    - [Jetonu Yenile (Refresh Token)](#jetonu-yenile-refresh-token)
    - [JWT Taşıyıcı (JWT Bearer)](#jwt-ta%C5%9F%C4%B1y%C4%B1c%C4%B1-jwt-bearer)
        - [JWT Hazırlanışı](#jwt-haz%C4%B1rlan%C4%B1%C5%9F%C4%B1)
- [Katkıda Bulunma](#katk%C4%B1da-bulunma)
- [Lisans](#lisans)

Codeigniter 4 OAuth2 Library
============================

[](#codeigniter-4-oauth2-library)

This is an OAuth2 library that can be used in CodeIgniter 4. It allows users to authorize and authenticate with third-party applications.

Features
--------

[](#features)

- Easily configure and deploy an OAuth2 server application.
- Support for authorizing and authenticating users with third-party applications.
- Integration with any client application that supports the OAuth2 protocol.
- Access authorization mechanisms that secure user capabilities.

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

[](#installation)

To add the library to your project, follow these steps:

1. Navigate to your project's files.
2. Use Composer to add the library to your project with the following command:

    `composer require bertugfahriozer/ci4oauth2`
3. You'll need to create a configuration file. To create a config file, run the following command:

    `php spark make:config`
4. To create the required database tables, run the following command:

    `php spark migrate -all`

You're now ready to use the OAuth2 library in your project!

Usage
-----

[](#usage)

### Configration

[](#configration)

Here's an example of a configuration file you can create for your OAuth2 library:

```
