Giter Site home page Giter Site logo

seat-strict's Introduction

seat-strict

A module for SeAT that allows for enforcing ESI tokens to be up to date

Latest Stable Version License

Usage

This plugin allows you to remove privileges from users when they have invalid tokens for linked characters.

Once installed an audit will be performed automatically on the relevant user whenever a refresh token is deleted.

There is also the command strict:audit which will queue jobs to audit every user. This can be run manually or I also recommend you add it to the seat scheduler.

Configuration

Plugin Enable

  • Global Enable - This setting will enable or disable the entire plugin

What to Remove

  • Remove Squads - Remove users from squad member lists when they have an invalid token
  • Remove Mods - Remove users from squad moderator positions of squads when they have an invalid token
  • Remove Squads - Remove users from squad member lists when they have an invalid token

Reason for Removal

  • Invalid Token - If the user has any invalid tokens then strip their permissions

Caveats

Until changes are made to SeAT core (working on it) the behaviour with auto squads is a bit flaky, as it will be a constant battle between seat re adding the squad and this plugin removing it. Until this is resolved, you may notice increased job load as this fighting occurs.

Quick Installation

Docker Install

Open the .env file (which is most probably at /opt/seat-docker/.env) and edit the SEAT_PLUGINS variable to include the package.

# SeAT Plugins
# This is a list of the all of the third party plugins that you
# would like to install as part of SeAT. Package names should be
# comma separated if multiple packages should be installed.
SEAT_PLUGINS=cryptaeve/seat-strict

Save your .env file and run docker-compose up -d to restart the stack with the new plugins as part of it. Depending on how many other plugins you also may have, this could take a while to complete.

You can monitor the installation process by running:

docker-compose logs --tail 5 -f seat-web

Blade Install

In your seat directory (By default: /var/www/seat), type the following:

php artisan down
composer require cryptaeve/seat-strict

php artisan vendor:publish --force --all
php artisan migrate

php artisan up

And now, when you log into 'SeAT', you should see a 'SeAT Text' link on the left.

Usage Tracking

In order to get an idea of the usage of this plugin, a very simplistic form of anonymous usage tracking has been implemented.

Read more about the system in use here

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.