Git Product home page Git Product logo

things's People

Contributors

peppydays avatar

Watchers

 avatar

things's Issues

[Identity] Implement RefreshAccessToken command and executor

To do

  • Create RefreshAccessToken command
  • Generate the new access token and refresh token if the requested refresh token is valid
  • Valid refresh token means that it is the same as the persisted refresh token of the user, and it is not expired
  • If the requested token is not valid, return UNAUTHORIZED (and this will make the client to redirect to the login screen)

[User] Sign in with unregistered user ID makes panic and API connection error

Steps to reproduce

http post http://localhost:8080/account/user/sign-in-with-credential id=4eae0836-50bb-4ead-96e2-985d53441e01 password=welcome

http: error: ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) while doing a POST request to URL: http://localhost:8080/account/user/sign-in-with-credential
thread 'tokio-runtime-worker' panicked at domain/src/user/models.rs:109:52:
called `Result::unwrap()` on an `Err` value: PhcStringField
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Issue

When requesting sign in with unregistered user ID, it creates an default User instance having empty string password. When creating PasswordHash instance and unwrapping it, panic happens.

What to expect

When requesting sign in with unregistered user ID, it should be the same response as the password of existing user is not verified.

[Design] Design Identity and User aggregates in Account BC

Context

  • Identity is about authentication and athorisation, and User is .. just a member information that holds roles (user = member + admin)
  • Some virtual requirements
    • A user can sign in one of the roles: member or admin
    • Identity aggregate issues and validate JWT token that also maintain roles
    • Basic functionalities - sign up, sign in and sign out are required, and sign in is established by emails and password
    • When entering my page, the user's information should be shown as follows
      • name, birth year, email, preferred locale

Log

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.