I would like to obtain the sub (NameIdentifier) of a user for an AD FS application in order to allow him to identify in an application's user table.
https://docs.microsoft.com/en-us/azure/active-directory/develop/id-tokens#using-the-id_token
This is completely On-Premises set up.