Return (sec => sec = AppPasswordRequiredErrorCode) _authContext.AcquireToken(GraphResource, _clientId, new UserCredential(user, pass)) Public bool Authenticate(string user, string pass) _authContext = new AuthenticationContext(string.Format(AuthorityFormatString, tenantId)) Var tenantId = "." // Get from configuration Private AuthenticationContext _authContext Private const string AuthorityFormatString = "" Private const string AppPasswordRequiredErrorCode = "50076" So, to answer my own question somewhat, I resorted to doing the following (cleaned up for brevity): public class AzureAdAuthenticationProvider
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |