Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Hello I need to give access to some api anonymous access, but not toatly anonymous, I am sending a custom hashed token to end-user's email. When user visits that link I can get that token and send it as parameter to my [AbpAllowAnonymous] api and encode the token and check if it's really my token or not and then process the other steps, everything works as ecpected.
But there are lots of api which are going to work in the same with that token and each time I should send it as parameter to api.
I am trying to write a public app service base and then all others public app serivce will inherit from this.
/// <summary>
/// Public App Service base
/// </summary>
public abstract class XXXPublicAppServiceBase : AbpServiceBase
{
public string Token { get; set; }
protected XXXPublicAppServiceBase()
{
LocalizationSourceName = XXXConsts.LocalizationSourceName;
}
protected virtual void CheckErrors(IdentityResult identityResult)
{
identityResult.CheckErrors(LocalizationManager);
}
}
I have two question: