How to sign-in from code behind in abp.io?

1.3k views Asked by At

I am exploring the abp.io and trying to develop a vary simple test-app. Currently, I've exposed a restful api which users could use it to create a new account using only the mobile phone number. The next step is to sign-in from C# and return token to api-caller.

How can I sign-in from C#? Is there any sign-in service (like SignInManager) or restful api for login purpose?

P.S. I found the solution and it's all about including a module in abp.io, read more about the solution in comments.

1

There are 1 answers

0
Mourad GHERSA On

You have to implement an IRemoteServiceHttpClientAuthenticator and an AccessTokenManager and inject both of them. follow this article :

https://support.abp.io/QA/Questions/53/Login-From-Desktop-Client