Files
services/users
Asim Aslam 42370d50f3 Descriptions (#42)
* adding descriptions

* fix title

* add geocoding

* update location readme

* update places api

* update posts readme

* update routing

* update users
2021-01-20 10:02:06 +00:00
..
2021-01-19 16:59:25 +00:00
2020-10-23 17:41:00 +02:00
2020-10-23 17:41:00 +02:00
2020-10-23 17:41:00 +02:00
2021-01-19 16:59:25 +00:00
2021-01-12 15:50:27 +00:00
2021-01-20 10:02:06 +00:00

A user service for storing accounts and simple auth.

Users Service

The users service provides user management and authentication so you can easily add them to your own apps without having to build the entire thing from scratch.

Getting started

micro run github.com/micro/services/users

Usage

User server implements the following RPC Methods

Users

  • Create
  • Read
  • Update
  • Delete
  • Search
  • UpdatePassword
  • Login
  • Logout
  • ReadSession

Create

micro call users Users.Create '{"id": "ff3c06de-9e43-41c7-9bab-578f6b4ad32b", "username": "asim", "email": "asim@example.com", "password": "password1"}'

Read

micro call users Users.Read '{"id": "ff3c06de-9e43-41c7-9bab-578f6b4ad32b"}'

Update

micro call users Users.Update '{"id": "ff3c06de-9e43-41c7-9bab-578f6b4ad32b", "username": "asim", "email": "asim+update@example.com"}'

Update Password

micro call users Users.UpdatePassword '{"userId": "ff3c06de-9e43-41c7-9bab-578f6b4ad32b", "oldPassword": "password1", "newPassword": "newpassword1", "confirmPassword": "newpassword1" }'

Delete

micro call users Users.Delete '{"id": "ff3c06de-9e43-41c7-9bab-578f6b4ad32b"}'

Login

micro call users Users.Login '{"username": "asim", "password": "password1"}'

Read Session

micro call users Users.ReadSession '{"sessionId": "sr7UEBmIMg5hYOgiljnhrd4XLsnalNewBV9KzpZ9aD8w37b3jRmEujGtKGcGlXPg1yYoSHR3RLy66ugglw0tofTNGm57NrNYUHsFxfwuGC6pvCn8BecB7aEF6UxTyVFq"}'

Logout

micro call users Users.Logout '{"sessionId": "sr7UEBmIMg5hYOgiljnhrd4XLsnalNewBV9KzpZ9aD8w37b3jRmEujGtKGcGlXPg1yYoSHR3RLy66ugglw0tofTNGm57NrNYUHsFxfwuGC6pvCn8BecB7aEF6UxTyVFq"}'