Python AzureAD login, refreshtoken and call graph API

Parameter.Js:

<br />{
"resource": "https://graph.microsoft.com/",
"tenant" : "{directory_id}",
"authorityHostUrl" : "https://login.microsoftonline.com",
"clientid" : "app_id",
"username" : "username",
"password" : "password"
}

Continue reading “Python AzureAD login, refreshtoken and call graph API”

Speed up building software

To speed up software building .the most common way is reuse something ready.
there are ways to create reusable stuff .make high cohesion: create function, class ,use patterns , components … what happens is, (say want class reusable) sometimes the use case is not exactly same as last time when class been created or lets say the class is has not been created perfectly but can not change it now, and 85% codes are same ,only some thing (say project name, model name etc) are different .

Continue reading “Speed up building software”

Azure application architecture prototype

This article discuss a generic azure based software solution .

Gate. This could be a API Gateway or Proxy(forward for reverse) or balancer .the purpose could be multiple .centralization the nodes registration ,(AD) authentication, load balancing ,request filtering, reverse proxy , etc .the point is centralization the controlling nodes concerns :load ,security , cache, etc .

Continue reading “Azure application architecture prototype”