Home
That Programming Aha Moment
Cancel

Angular 6 with JWT and Refresh Tokens and a little Rxjs 6

First Adjustments So before we get to the Angular code, I did update my Api code just a bit to both enhance our Values calls a little and also had to add to add some Cors configuration in order ...

Authenticate and Authorize With Jwt Tokens In Asp.Net Core 2 Web Api

Finally! Let’s see how we “login” our user and make requests with Jwt tokens and have other endpoints protected from access without a valid token. Start With The Configuration File To set thing...

Sql Server 2016 on Docker for Development

No Sql Server installation required! I have searched and found a way for me to run the developer version of Sql Server 2016 on my SSMS on my development machine and I can spin up my Sql Server i...

Refresh Tokens in Asp.Net Core 2 Api

So you are now Authenticating your user and providing Authorization via the Jwt (Auth) token. Now you don’t want your Auth tokens to live for really long periods of time, and you certainly don’t ...

Validation in Asp.Net Core 2 Web Api

Looking back at our two endpoints in our AccountController class I hope you remember that we didn’t do too much to insure that the client sends us correct data. In fact, as it stands right now, i...

Capture Tenant in Asp.Net Core 2.0 Web Api

Let’s now capture the Tenant in our code. Here I will be using the domain name of the web site the app runs on to determine who the Tenant is. Normally you would capture domains names like “custo...

Register A New User In Asp.Net Core Web Api

Here is where we get into the meat and potatoes a bit more. Let’s start adding some endpoints and get our Auth and Auth underway. Start by adding a new, empty Api Controller to your Controllers ...

Add Multi-Tenancy to Asp.Net Core Identity

Now I think it starts to get a bit more interesting. I would like my API to be able to handle Multi-Tenancy. For this situation we need to add a whole new class/table to Asp.Net Core Identity. It...

Customize Asp.Net Core’s IdentityUser

In the last post we set up the Asp.Net Identity database and saw that our tables were all created for us. There is a lot of fields in the AspNetUsers table but if we do a bit of forshadowing….we ...

Set up Asp.Net Core 2 Web API to use Asp.Net Core Identity

Pure API Project I wanted to do a series on using Asp.Net Core 2 and Asp.Net Identity and expand that and customize it quite a bit…. but… Only using an Web API project. I could not find anythi...