PHPackages                             opauth/thecity - 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. opauth/thecity

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

opauth/thecity
==============

The City strategy for Opauth

061PHP

Since Sep 28Pushed 12y ago4 watchersCompare

[ Source](https://github.com/thecity/opauth-thecity)[ Packagist](https://packagist.org/packages/opauth/thecity)[ RSS](/packages/opauth-thecity/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Opauth-TheCity
==============

[](#opauth-thecity)

[Opauth](https://github.com/uzyn/opauth) strategy for The City authentication.

Implemented based on

Getting started
---------------

[](#getting-started)

1. Install Opauth-TheCity:

    ```
    cd path_to_opauth/Strategy
    git clone git@github.com:thecity/thecity-php.git TheCity
    ```
2. Create a plugin/app for The City (see  for steps)

    - Make sure that redirect URI is set to actual OAuth 2.0 callback URL, usually `http://path_to_your_app/thecity/int_callback`
3. Configure Opauth-TheCity strategy with at least `Client ID` and `Client Secret`.
4. Direct user to `http://path_to_opauth/thecity` to authenticate

Strategy configuration
----------------------

[](#strategy-configuration)

Required parameters:

```
