Skip to content

Evolvus/e-authorization

Repository files navigation

e-authorization

This service uses evolvus-user module to authorize userName.

API

Authorization API


Method :'POST'
Request URL : 'http://localhost:8088/api/user/authorize'
Content-Type:'application/json'
Request Body:
{
"userName":"name",
"applicationCode":"code"
}

Token Update API


Method :'POST'
Request URL : 'http://localhost:8088/api/user/updateToken'
Content-Type:'application/json'
Request Body:
{
"id":"userid",
"token":""
}

Authorization API for IndusCollect


Method: 'POST'
Request URL: 'http://localhost:8088/api/user/authorize'
Content-Type:'application/json'
Request Body:
{
"userId":"name",
}

To build the image

sudo docker build -t hobbs.evolvus.com:11083/e-authorization .

To push the image to nextus

docker image push hobbs.evolvus.com:11083/e-authorization:latest

To start the image

export TZ=Asia/Kolkata
export MONGO_DB_URL=mongodb://myUserAdmin:12356@192.168.1.152:27017/PlatformRelease_Test?poolSize=20&authSource=admin
export DEBUG=evolvus*
export CORPORATE_URL=http://192.168.1.151:8889/flux-services/corporate/status/


docker run --name e-authorization-service -e TZ -e MONGO_DB_URL -e DEBUG -e CORPORATE_URL -p 8098:8098 182.72.155.166:10515/e-authorization:latest