rossaddison/yii-auth-client

Yii Framework external authentication via OAuth

dev-master / 3.0.x-dev 2024-12-19 19:52 UTC

This package is auto-updated.

Last update: 2024-12-19 19:52:31 UTC


README

Yii Oauth

Yii External Authentication


[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fyii-auth-client)](https://dashboard.stryker-mutator.io/reports/yii-auth-client) [![Build status](https://github.com/rossaddison/yii-auth-client/workflows/build/badge.svg)](https://github.com/rossaddison/yii-auth-client/actions?query=workflow%3Abuild) [![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Frossaddison%2Fyii-auth-client%2Fmaster)](https://dashboard.stryker-mutator.io/reports/github.com/rossaddison/yii-auth-client/master) [![static analysis](https://github.com/rossaddison/yii-auth-client/workflows/static%20analysis/badge.svg)](https://github.com/rossaddison/yii-auth-client/actions?query=workflow%3A%22static+analysis%22) ![Psalm Level](https://img.shields.io/static/v1?label=Psalm%20Level&message=1&color=66ff00) [![type-coverage](https://shepherd.dev/github/rossaddison/yii-auth-client/coverage.svg)](https://shepherd.dev/github/rossaddison/yii-auth-client)

This extension adds OAuth, and OAuth2 consumers for the Yii framework.

Requirements

  • PHP 8.3 or higher.

Installation

The package could be installed with Composer:

composer require rossaddison/yii-auth-client

Documentation

26th November 2024 Purpose for this fork: Introduce external authentication into rossaddison/invoice

  • Due to the archiving of nov/jose-php, openId Connect, and OAuth1 have been removed from this fork to allow the use and testing of other clients such as: Facebook, Google, Github, LinkedIn, Live, TwitterOAuth2, VKontakt, and Yandex.
  • This fork is being tested currently and is psalm level 1 statically built and tested only.
  • 3 issue handlers are currently in the psalm.xml and can be removed independently to see relevant errors by running e.g c:\wamp64\www\yii-auth-client\php ./vendor/bin/psalm
  • A suitable php substitute will hopefully be introduced later for nov/jose-php. yiisoft/auth-jwt is the obvious choice.
  • Due to the archiving of yiisoft/yii-jquery, a cdn for jquery has been introduced into src/Asset/AuthChoiceAsset.php
  • Guide: English, Русский
  • Internals

If you need help or have a question, the Yii Forum is a good place for that. You may also check out other Yii Community Resources.

License

The Yii External Authentication is free software. It is released under the terms of the BSD License. Please see LICENSE for more information.

Maintained by Yii Software.

Support the project

Open Collective

Follow updates

Official website Twitter Telegram Facebook Slack