locked
Appropriate events to fetch secret value from Azure Key vault and setting value in Azure Redish Cache in an ASP.Net web application RRS feed

  • Question

  • Hi Team,

    Can you please mention appropriate event in as ASP.Net web application to perform below -

    1) Fetch secret key value from a key vault in azure.

    2) Add values to redish cache which is to be accessed later.

    I need to do this once i am able to authenticate the user.

    Please let me know if additional Information required.

    Thanks,

    Salil

    Tuesday, May 26, 2020 3:26 PM

All replies

  • .Net core has a KeyVault configuration provider that you can use to read secrets within your application.

    Please read more about it here. There is a code sample too on the same page.

    For your second question, do you authenticate the user using ASP.Net Identity?

    You can write the data to event after the user logs in, just call your logic in the result.Succeeded method in the code sample here.

    -

     

    If this answers your query, do click “Mark as Answer” and Up-Vote for the same which might be beneficial to other community members reading this thread .

    And, if you have any further queries do let us know. 


    Wednesday, May 27, 2020 7:05 AM
  • Please let us know if you need additional assistance.

    Regards,

    Mike

    Monday, June 1, 2020 7:30 PM