Coder Social home page Coder Social logo

identification-service's People

Contributors

abeninski avatar cepheid-uk avatar diewolke9 avatar fluxxu avatar gustav87 avatar jt-graves avatar miyagi1337 avatar modmoto avatar playlikeneverb4 avatar weidenbach avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

identification-service's Issues

401 errors for website login

Not sure what is causing this, but ID service is returning 401 for website logins.

Logs from ID service of this happening attached.

401error.txt

?jwt=undefined application/json

looks a bit strange to me?

Permissions system

We have need shortly for a permissions system on the website. I thought I'd start this as a topic for discussion. I'll be trying to look into how to do this soon.

I think this is going to require a new JWT claim, so my suggestion is a "permissions" or "roles" claim inside the JWT that contains enum mappings for permissions.

something like:

"roles": [
  {
    "name": "admin",
    "permissions": [
       {
         "name": 0 // which maps to an enum for that permission
       },
       ...
    ]
]

Permissions we would need are:

  • global or "root" permissions granting all permissisons.
  • creating/editing automated tournaments for a game mode.
  • banning players for a game mode (I guess we can include all of melee for this).
  • adding new maps (a one-day feature I think)
  • some kind of global "flo" permissions, at the moment used for assigning proxies to bnet tags
  • Data scientist role (currently used for looking at queue data)

Some potential issues I see:

  • Our expiry for JWTs is functionally never, I assume we would need to regularly refresh tokens to update permissions? maybe once every day or so?
  • We'll probably have to make a new secret, which means breaking everyones oauth. If we anticipate this right and only require a one-off sign in again.

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.