Giter Site home page Giter Site logo

keycape's People

Contributors

dependabot[bot] avatar timuntersberger avatar

Watchers

 avatar  avatar  avatar

keycape's Issues

Improve diffing of config.yaml

Currently we try to create every entity defined and log when a unique value already exists.

But what if you only changed the scopes of an account. Currently it doesnt update the entity in the db.

Invalidation

Support either accesstoken or refreshtoken invalidation (most likely by using a blacklist in redis)

Error Codes

Currently the only way of knowing what error got returned is by comparing the error message. This is very inefficient for the user and error prone.

Create a unique error code for each error message that gets propagated back to the user.

Don't forget to document all of the codes!

Config

Add following validations before persisting the entities:

  • Name has to be unique
  • Referncing a role or privilege that doesn't exist is not possible

Migrations Production

The mikro orm migrator up function always tries to do every migration.

Somehow only do the migrations once.

Finish CRUD endpoints

  • Account
    • create one
    • get one
    • get all
    • update one
    • delete one
    • get role
    • get oauth2connections
  • Role
    • create one
    • get one
    • get all
    • update one
    • delete one
    • get privileges
    • add privilege
    • remove privilege
  • Privilege
    • create one
    • get one
    • get all
    • update one
    • delete one

Refresh Token Lifetime

Currently the refresh token is hard coded to 7d.
There is no way to change this as a user of keycape without forking the repo.

Make it configurable

Forgot Password Token Livetime

Currently the forgot password token is hard coded to 10 minutes.
There is no way to change this as a user of keycape without forking the repo.

Make it configurable

Access token payload

Think about the current accesstoken payload. Maybe we should only send the id of the account instead of the whole account.

Connect existing account

Currently it is only possible to connect an account with a provider by signing in with that provider.

It would be awesome if you could add a provider to an existing account.

Access Token Lifetime

Currently the access token is hard coded to 15 minutes.
There is no way to change this as a user of keycape without forking the repo.

Make it configurable

Write documentation

  • - connect google
    • - create a google application
    • - find google id and secret
  • - connect github
    • - create a github application
    • - find github id and secret
  • - describe api

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.