The npm package(https://www.npmjs.com/package/@azure/ms-rest-nodeauth) describes various authentication mechanisms for azure :
- username/password based login
- service-principal/secret based login
- interactive/device-code flow login
- service-principal authentication from auth file on disk
- MSI (Managed Service Identity) based login from a virtual machine created in Azure
- MSI (Managed Service Identity) based login from an AppService or Azure Function created in Azure.
I would like to know which of these mechanisms can be used by which roles(like Owner, Contributor,etc. ) to perform the permissions they have. For example, a contributor cannot use the service-principal/secret login (I might be wrong on this one) and username/password can only be used by organizational IDs.