Skip to main content

Command Palette

Search for a command to run...

New version of password vault webpart was released

Updated
2 min read
New version of password vault webpart was released
$

I am Sergej and I am a Software Architect from Germany (AURUM GmbH). I have been developing on Microsoft technologies for more than 14 years, especially in SharePoint / Microsoft 365. With this blog, I want to share my knowledge with you and also improve my English skills. The posts are not only about SPFx (SharePoint Framework) but also about tips & tricks around the M365 world & developments of all kinds. The posts are about TypeScript, C#, Node.js, Vue.js, Visual Studio/ VS Code, Quasar, PowerShell, and much more. I hope you will find some interesting posts. I would also be happy if you follow me. Greetings from Germany Sergej / $€®¥09@

Almost a year ago I released my "Simple password vault" webpart. Actually, it was only meant for a single username and password. If it should be more, you could have used the notes field. After I presented it once in the PnP community call, I also promised to release a new version with more features.

In the new version, it should be possible to store as many usernames, passwords and notes as you want. I finally got around to adding these features. I decided to make it dynamic, in a similar "look and feel" as in SharePoint Standard, when you want to place a new webpart. It appears this "+" symbol when you hover with the mouse.

Add new Module "+" symbol

And then you can add a new module. There are modules for username, password and also notes. Once modules are placed, you can sort or remove them.

The web part now looks like this (in edit mode):

New UI of edit mode

I have also made a few design adjustments/optimizations. Also, for safety, the master password must be entered twice. And I have updated the solution to SPFx 1.16.1

In the "backend", the logic has changed a bit because of the modules. But I made sure that you can update from version 1.0.0 to the new version 1.1.0 without any problems. Without data loss but with the same functionality as in the new version. Even with the changes, the values are still encrypted.

I hope you like my new webpart. You can download it here

D

great webpart. ideas for you:

  1. like a notefield, make a type called "certificate".
  2. add an expiration date w/ability to send notifications as the date draws near.
1
$

Hi Denny Regehr thank you for your comment and the idea. Just to be sure I understand it correctly. Do you mean a note field where the TEXT of the certificate is stored? Or do you mean a certificate field as an attachment?

Regarding the expiration date and notification: A TimerJob or something similar is needed for this request. The next problem is: all data is encrypted and can be decrypted ONLY with the master password. This means: the expiration date cannot be read if it is not decrypted and this is only possible with the master password. And I/the timer job do not know the master password. That means you would have to implement the same encryption and decryption logic in the timerjob (The timerjob would have to know the page URL, webpart instance ID and the masterpassword (not hashed)). In addition, there are fees for the TimerJob. I think it would be easier in this case to just take a list, (possibly only for a certain group of people) and build a flow that determines the date from the items and notifies you. The certificate itself doesn't even have to be stored in the list, it could still be in the WebPart :-)

D

$€®¥09@ I was thinking the certificate field would just be the text of the certificate, but an attachment would be interesting for sure. As for the date, maybe it could be stored unencrypted. And I wonder if power automate might offer a solution that could be built into the web part to set a reminder. Well these are just some crazy thoughts. I love your contribution. This is just great!!

$

Thank you Denny Regehr

I will think about it. Maybe I can find a solution for it.

1

More from this blog

S

SharePoint SPFx Development by $€®¥09@

30 posts