Posts

File Backups to Dropbox with PowerShell

I have had a number of instances where I had a virtual server somewhere, and I wanted to have a backup strategy, but the paid plans were overkill for what I needed. I have all my source code in Github, so everything can be rebuilt. I just need to be able to archive database backups and uploaded files. I decided to use a Dropbox account and set up a scheduled task that calls a PowerShell script that accesses the Dropbox web API. Setting up Dropbox You will need to have a Dropbox subscription set up and then you can go to the developer's section at the following link: {% embed url=" https://www.dropbox.com/developers " %} On the main page, select create apps. On the following page, you will have the option to select the scope of the app. Here you can decide to only access a single folder or give access to all of the Dropbox functions. Either option will work, in my example, I used the full access scope, so I would have the option of putting different file types in different

Adding JWT Authentication with refresh to Angular Project

Image
  In my previous post, I showed how to configure an Asp.Net Core application to use the built-in Identity platform to authenticate via a web page and use JWT for SPA's and mobile clients (See the article  here ).   This tutorial will show you how to add JWT authentication to an angular project using the ASP.NET Core web API backend from my previous tutorial (see LINK). The project will consist of a register page, l ogin page, and a home page that will be protected by a guard and show the token when logged in. If you don't have angular installed on your system, you can run the following command. npm install -g @angular/cli Next, you will want to open a terminal window and execute the following command to create a new project. ng new angular-jwt-auth-demo Change to the new directory, and type the following command to make sure the project is set up and running properly. ng serve You should be able to copy the link provided into a browser and see your project. Now you will want to