gerqa.blogg.se

Exchange web services modern authentication
Exchange web services modern authentication









exchange web services modern authentication

If that 'web' service is some service that runs on the users computer you can use one of the methods described below.

exchange web services modern authentication

The user will be presented a login screen on the OAuth2 server (and not in your application), once the user logs in a code or access token (depending on the grant) will be returned to your application which you can use in the ExchangeService constructor. If that is some kind of website where the user needs to login or pass credentials, then you'll have to start an OAuth2 grant from the browser as in redirecting the clients browser to the authorize endpoint to start implicit grant or code grant. It's not clear what you mean with 'web service' and how you currently get the username and password. I saw some examples but all of them seem to be talking about authenticating the client ( ) but nowhere I was able to find an example of how to authenticate an exchange user with OAuth protocol. Now, I am supposed to replace the authentication mechanism to use OAuth protocol. Var subscription = service.SubscribeToPushNotifications( My web service is currently doing basic username/password authentication in order to subscribe the exchange user for receiving the events (like new mail event etc) like below: var service = new ExchangeService(exchangeVersion)Ĭredentials = new NetworkCredential(username, password)











Exchange web services modern authentication