Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

YOURLS plugin: Cloudron OIDC

A YOURLS plugin that adds login with the Cloudron OpenID Connect provider. It is used by the Cloudron YOURLS package.

Features

  • Adds a Log in with <provider> button to the YOURLS login form. The local login form is collapsed behind a Log in with local account link, so users defined in config.php can still log in with their password.
  • The YOURLS username is taken from the preferred_username claim.
  • Users that logged in once are stored in the oidc_users option. Their auth cookies and API signature tokens keep working without a password entry in config.php.

Requirements

  • YOURLS 1.10 or later
  • PHP 8.1 or later with the curl and json extensions
  • Composer

Installation

Download yourls-oidc-plugin-<version>.zip from the releases and extract it into user/plugins/. The zip includes the Composer dependencies.

Or from source:

cd user/plugins
git clone https://github.com/cloudron-io/yourls-plugin-oidc.git yourls-oidc-plugin
cd yourls-oidc-plugin
composer install --no-dev

Then activate the plugin in Manage Plugins.

Configuration

The plugin reads the environment variables that the Cloudron oidc addon provides:

Variable Description
CLOUDRON_OIDC_ISSUER Issuer URL. The plugin is inactive when this is not set
CLOUDRON_OIDC_CLIENT_ID Client ID
CLOUDRON_OIDC_CLIENT_SECRET Client secret
CLOUDRON_OIDC_PROVIDER_NAME Button label. Defaults to Cloudron

The redirect URI to register with the provider is <YOURLS_SITE>/admin/?oidc=callback.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages