mrexmelle / connect-authx Goto Github PK
View Code? Open in Web Editor NEWAuthentication Microservice for Connect
License: MIT License
Authentication Microservice for Connect
License: MIT License
This ticket requires the new implemetation of dto
and localservice
packages to be updated followed by how it is implemented.
This is an experiment of putting SDK code in the server code.
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.
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.
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.
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.
This ticket is to prepare the first Docker image publish
The swagger documentation misses information about /sessions
endpoint. The information is necessary to help people understand about the endpoint.
POST /credentials
accepts empty employee_id
or password
. This should be prevented.
Upgrade documentation and version
The publication enables other modules to use the SDK.
Bump the version to prepare for release
main.go
Makefile
docker-compose.yml
root.go
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)
}
}
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
.
The PATCH /credentials/{ehid}/password
and DELETE /credentials/{ehid}password
works for employees whose is_deleted
is null
This ticket requests that error be returned upon requesting to employees whose is_deleted
is null
Two routes are expected:
/profiles/me
to get one's profile/profiles/me/employee-id
to translate JWT to employee ID fasterA declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.