Implementing your own simple Roles mechanism in Delphi MVC Framework
Important Note: DMVC already has a Roles framework in place which is quite sophisticated and you can find it in the samples. My purpose of writing this blog is to demystify the subject by explaining it conceptually and then implementing it with bare hands so that you can understand the functionality of it all. In …. Read More
Managing session information in web tokens in Delphi MVC Framework (Part 5)
In the previous section, I had explained how the web token is sent to the client using cookies. I also explained how those cookies need to be configured. In this section, I will explain how to pass the web token we received from the server to other microservices for authentication. We saw that our web …. Read More
Managing session information in web tokens in Delphi MVC Framework (Part 4)
In the previous section, I explained what a web token consists of and how you can generate it from your Delphi code. In this section, we will talk about how that token is sent to the client for further use and information sharing across different microservices. Remember the unit we created for the token generation …. Read More
Managing session information in web tokens in Delphi MVC Framework (Part 3)
In the previous section of this series, we delved into the concepts of encoding data and hashing it. In this section, we will write some code to implement what we understood. Like I mentioned before, a web token will consist of two components Encoded Data Hash string Lets implement a helper function that generates the …. Read More
Managing session information in web tokens in Delphi MVC Framework (Part 2)
In the previous section of the series, I had explained the requirement of sharing session information across multiple web services and the option of a persistent mechanism to do so. In this section, I will delve into achieving the same objective. But instead of a persistent mechanism (such as a database), I will show you …. Read More
Managing session information in web tokens in Delphi MVC Framework (Part 1)
This is the first part of the series leading to using web tokens in Delphi MVC Framework. So why this blog? This is blog is an outcome of the problems I needed to solve when writing my web application. I will first try and define the problem and then show you how you can over …. Read More