Base solution for your next web application
Open Closed

Manage credentials for external services #11303


User avatar
0
visility created

Hello I need to connect some external services with username and password. I though about using the Usermanager - but here password is hashed - so i need some solution where I can decrypt password before usage. Could I achive this with builtin features of aspnetzero? Thanks,


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

    Hi @visility

    As far as I know, this is not possible. Could you explain your scenario in details so we can help you ?

  • User Avatar
    0
    visility created

    So I have a hangfire job that read some data from an sftp server. When the job start it needs the login credentials to connect the sftp server. I need to store these somewhere - and It would have been great if this could be managed like I manage users. So that the hangfire job would just know the username and could then retrive the full credentials from secure storage. So I was hoping on something like that, and I would expect this to be a common scenario. Hope this was more clear explained? Thanks,

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thank you for the explanation. For this purpose, maybe you can use Settings feature of AspNet Zero. You can store those credentials as settings and settings can store their values as Encrypted, see https://aspnetboilerplate.com/Pages/Documents/Setting-Management#isettingencryptionservice.

  • User Avatar
    0
    visility created

    hi Thank you, but what about dynamic properties? https://aspnetboilerplate.com/Pages/Documents/Dynamic-Parameter-System This already has a UI for the user to edit value. Could that be used? I tried but cannot se how the value actually can be altered by UI. Thanks for your advice.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Yes, this feature can be used as well. The only thing is, the values stored in those fields are not encrypted. In order to edit the dynamic property values, you need to open the dynamic properties window again. It will show the existing values if entered before.