Microsoft auth by connected app -> How to add login button?

Add 2 redirect uri on azure end, you can use same client.

You’ll need to add same client in 2 places. Only redirect uri is different.

Post about host_name How to configure microsoft account by oauth in erpnext - #12 by revant_one