Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ozh/yourls-enhanced-cookies

YOURLS plugin to harden auth cookies 🍪👮
https://github.com/ozh/yourls-enhanced-cookies

cookies yourls yourls-plugin

Last synced: 21 days ago
JSON representation

YOURLS plugin to harden auth cookies 🍪👮

Awesome Lists containing this project

README

        

# Plugin for YOURLS : Enhanced Auth Cookies [![Listed in Awesome YOURLS!](https://img.shields.io/badge/Awesome-YOURLS-C5A3BE)](https://github.com/YOURLS/awesome-yourls/)

> This plugin requires YOURLS 1.7.7+

## What for

Out of the box, YOURLS auth cookies have site dependent unique name. This plugin enhances the cookie based authentication, making each auth cookie name unique and time based with a 1 minute expiration.

This plugin is a proof of concept to show how to customize your own authentication policy. Copy, edit it and build on it to suit your needs.

## How to

* In `/user/plugins`, create a new folder named `enhanced-cookies`
* Drop these files in that directory
* Go to the Plugins administration page and activate the plugin
* Have fun

## FAQ

1. "it doesn't work!"
* Sorry, it does for me.

2. "Why not make this core and default YOURLS behavior?"
* Because 99.9% of YOURLS users are just happy with the way things work out of the box. Adding feature means adding complexity and having to deal with all kind of setups and use cases. This is exactly why YOURLS has a plugin API: it allows feature for the 0.1% of people who really need it.

## License

Do whatever the hell you want with it.