Django (DRF) Serializers To Handle Nested JSON data

I have been dealing with a lot of JSON data more than ever before. All of the data are coming from a Webhook provider upon certain events. One of the things I was not comfortable with was the nested JSON structure until I found there is a clean way to solve it. Our Django app uses Django REST Framework (DRF) and relies heavily on its serialization capabilities. What are we going to see Looking at the data (JSON/dict) Looking at the model where the data is about to be stored Writing DRF serializer to handle the nested data More details of how its done using to_internal_value() conclusion A sample JSON data for context This is a webhook event when a charging session is started and stopped....

October 25, 2024 · 7 min

Auth0 as OpenIDC broker in AWS Cognito for AzureAD multi-tenancy support

If you read the previous article OAuth using AWS Cognito, then you should be also reading this. I’m writing this article after a month of this very story. But I believe I won’t miss much. SAML, OIDC setup and overview If we look into the out-of-the-box social identity providers , there are few. If we want to add Microsoft/Azure, that would be done via SAML or OpenID connect. Due to our client requirement, we started working on integrating Azure (now Entra) into Cognito via SAML....

March 24, 2024 · 5 min

Django OAuth setup with social login, AWS Cognito, GitHub - Full story

I spent some quality time researching about OAuth in Django. Tried more than 3 packages. Well, it was not just about just installing something and expect everything to work. There was some tinkering which i think i did well. Therefore, this some part of this blog might also help in your case i guess. I will be also uploading a YouTube video of the same, if i do, you can find the video at the bottom of this page....

January 25, 2024 · 12 min