Posts

Showing posts from January, 2021

AWS Cognito Multi Tenant

Multi-Tenancy or multiple organisations is a bit hard with AWS Cognito. The system itself can handle multiple user pools but it is not something they advertise cognito for. Even the front-end part is a choice itself since you need to either give single point to login to multiple organisations or provide multiple login pages to login single organisations. For my purpose where there are only certain amount of users I used single point to login. Cognito provides built-in page to serve customizable hosted login UI. I didn't want that and I found it really time consuming to make things work from my SPA front-end. This time it might be me to be the stupid here. For multi-tenancy I first ask for email Given email has its tenant and tenant has it's pool id (in dynamo db) The rest is copied from here https://stackoverflow.com/questions/49012091/aws-cognito-authorization-code-grant-flow-without-using-the-hosted-ui Except that it was impossible to make it work from SPA without ...

Why is this stupid software blog?

Software is stupid in many ways. It needs to be correct to work, otherwise it does not work. Usually it takes hours and hours to find why the stupid software does not work. That time we call development, even though it is mostly time spent unwisely. For some reason I do not use stackoverflow to give answers, instead I started blog to write down stupid answers. That is, notes from path where I have used too many hours for some pity reasons. Let see what will come out.