Git Product home page Git Product logo

connect-authx's People

Contributors

mrexmelle avatar

Watchers

 avatar

connect-authx's Issues

Create SDK code

Description

This is an experiment of putting SDK code in the server code.

Simplify fields checking when patching

Description

The current implementation of UpdateByEhid manually checks fields to be updated one by one. The approach needs to be updated so that future field addition will be handled from easier-to-spot files instead of this, e.g. by introducing a constant of array string.

GET /profiles/{ehid} returns error if dob undefined

Description

time.Time isn't sufficient to hold null datetime value from GORM's Scan function. An sql.Nulltime variable is required instead to hold null value. A check is then required to determine its validity (i.e. null or not) so the subsequent action can be done appropriately.

Create SecurityService

Description

The functions to handle token are currently in mapper.service, and the cookie is w in SessionService. This ticket requires that all security related functions be merged in SecurityService. The service will contain the following functions:

  • GenerateJwt
  • GenerateHash
  • GenerateJwtCookie

The mapper.service can be removed after SecurityService is complete.

Separate read and write datasources

Description

To prepare CQRS pattern, the read and write datasources need to be separated. This is also to prepare easy scale up when any of them needs one.

Add sessions route to Swagger

Description

The swagger documentation misses information about /sessions endpoint. The information is necessary to help people understand about the endpoint.

Update version to 0.2.0

Description

Bump the version to prepare for release

Changes

  • Update version in main.go
  • Update version in Makefile
  • Update version in docker-compose.yml
  • Update version in root.go

Update error handling

Description

Currently there's no singular way to return response. This ticket requires HTTP responses to return with the following format for responses with data:

{
 "data": $(data)
 "error": {
    "code": $(app_specific_error_code)
    "message": $(error_from_error_obj)
  }
}

And for responses without data:

{
 "error": {
    "code": $(app_specific_error_code)
    "message": $(error_from_error_obj)
  }
}

Change employee-id endpoint to ehid

Description

Current endpoint /profiles/me/employee-id isn't really useful because what we need is the ehid instead of employee-id.
So the endpoint needs to be changed to /profiles/me/ehid.

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.