login flow

This commit is contained in:
Michele Scandura 2020-11-10 12:14:21 +00:00
parent 886d2a88b0
commit 194f3cbffa
22 changed files with 642 additions and 141 deletions

View file

@ -0,0 +1,20 @@
using Refit;
using Sledgemapper.Shared.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace Sledgemapper
{
public interface IIdentityApi
{
[Post("/users/register")]
Task<HttpResponseMessage> Register([Body] RegisterModel registerModel);
[Post("/users/authenticate")]
Task<AuthenticateResponse> Authenticate([Body] AuthenticateModel registerModel);
}
}