Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How ABPSESSION works in ASP.Net Zero tool #5167


User avatar
0
pratiksa created

I want to add my own properties in "IAbpSession" interface and i have taken this url <a class="postlink" href="https://gist.github.com/hikalkan/67469e05475c2d18cb88">https://gist.github.com/hikalkan/67469e05475c2d18cb88</a> for reference and below are my project details and i have few questions on this-

Project Details: i) Created Project Structure using Asp.Net Zero tool ii) Using Asp.Net Core iii) UI Angualr-5

Questions:

I have created all things as per given in above url. But i am not getting the definition for "CreateIdentityAsync" So where i need to exactly place this method . After adding new claims then how will we get the values in UI using AbpSession. How AbpSession Works in Asp.Net.Zero tool. How we will get the value using abpSession for newly added claim in angular-5 . Can any one provide the code snippet using angular-5 and asp.net zero tool.


9 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    For ASP.NET Core please refer to this document <a class="postlink" href="https://gist.github.com/ismcagdas/6f2a9a3b5d7b907cb8d94a72124d59a1">https://gist.github.com/ismcagdas/6f2a9 ... 72124d59a1</a>.

  • User Avatar
    0
    pratiksa created

    Hello,

    Thanks for above solution. But we need to always inject "MyAppSession" class whenever we want to use and it is seems to be not working like "IAbpSession" any other possible solution rather than injection.

  • User Avatar
    0
    aaron created
    Support Team

    From the documentation on Replacing Built-In Services:

    // using Abp.Configuration.Startup;
    
    Configuration.ReplaceService<IAbpSession, MyAppSession>();
    
  • User Avatar
    0
    alper created
    Support Team

    for the others I created a wiki page for adding a new item to AbpSession <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/wiki">https://github.com/aspnetzero/aspnet-zero-core/wiki</a>

  • User Avatar
    0
    pratiksa created

    <cite>alper: </cite> for the others I created a wiki page for adding a new item to AbpSession <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/wiki">https://github.com/aspnetzero/aspnet-zero-core/wiki</a>

    After clicking on link i am getting 404 not found error. Could you please resend me the link

  • User Avatar
    0
    ismcagdas created
    Support Team

    It is a private repository. Go to <a class="postlink" href="https://aspnetzero.com/LicenseManagement">https://aspnetzero.com/LicenseManagement</a> and add your github user on github users tab.

  • User Avatar
    0
    pratiksa created

    <cite>ismcagdas: </cite> It is a private repository. Go to <a class="postlink" href="https://aspnetzero.com/LicenseManagement">https://aspnetzero.com/LicenseManagement</a> and add your github user on github users tab.

    I clicked on link ><cite>ismcagdas: </cite>

    It is a private repository. Go to <a class="postlink" href="https://aspnetzero.com/LicenseManagement">https://aspnetzero.com/LicenseManagement</a> and add your github user on github users tab.

    I clicked on above link and i have login-ed with forum but i am not getting the option for git hub user. Could you please precise the steps.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @pratiksa please see the below screenshot. If you can't add your github user, please share your github username with us and we will invite you.

  • User Avatar
    0
    geertveenstra created

    Hi,

    Could it be that I cannot access https://github.com/aspnetzero/aspnet-zero-core/wiki even though I have access to the private repository (the Wiki link is not visible).