Skip to content
This repository was archived by the owner on Aug 9, 2020. It is now read-only.

Identity

Ruben de la Torre edited this page May 27, 2017 · 8 revisions

This ASP.NET Core Service is responsible for:

Verification

The user verification story is handled similar to WhatsApp via an SMS code. Initiating a verification challenge will send a SMS to the provided phone number which contains a server side generated 6-digit security code which must be used on the resolve endpoint. On success the client can start requesting OAuth tokens.

SMS

YoApp provides an implementation if ISmsSender for the Twilio messaging service which is used by default when deployed.

API

URL Method Params Success Error
/verification/challenge/ POST challengeDto (json) OK Bad Request
/verification/resolve/ POST resolveDto (json) OK Bad Request

Authorization

Authorization is handled by the OpenIdDict Server component on a OAuth2 ClientCredentials basis. Furthermore the Data protection keys are stored on a Azure Blob storage so that other services can authenticate OAuth2 Bearer tokens on the request Http/OWIN pipeline.

API

URL Method Params Success Error
/connect/token/ POST requestDto (json) OKResult (json) Bad Request

Account

The Account endpoint offers all basic methods to retrieve a clients user information and change properties like the status message.

API

This Endpoint is only accessible for authenticated users.

URL Method Params Success Error
/account/ GET . OKResult (json) Status 500
/account/ POST dto(json) OKResult (json) Status 500
/account/name/ GET . OKResult (name) Status 500
/account/name/ PATCH $name OK Status 500
/account/status/ GET . OKResult (status) Status 500
/account/status/ PATCH $status OK Status 500

Clone this wiki locally