You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 18, 2024. It is now read-only.
This is not a issue, just asking some tips and support from you. I have been using the ews-android-api in my application to get the events etc.. According to the docs, the basic authentication will be deprecated on the coming October 2020. I believe the basic authentication have been using in this, So how can I use modern authentication instead of basic authentication in my application to continue using the ews-android-api in my projects after October. Looking forward to your suggestions and support.
The sample code used for login
private void loginEws(){
ExchangeUser user = new ExchangeUser(mUsername, mPassword, mExchangeServerUrl, mMailboxEmail);
ExchangeHelper helper = new ExchangeHelper(user);
helper.login();
}
public void login() throws Exception {
ExchangeService service = createService();
Mailbox mailbox = new Mailbox(user.getMailbox());
FolderId folderId = new FolderId(WellKnownFolderName.Calendar, mailbox);
CalendarFolder folder = CalendarFolder.bind(service, folderId);
}
private ExchangeService createService() {
try {
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
ExchangeCredentials credentials = new WebCredentials(user.getUsername(), user.getPassword());
service.setUrl(new URI(user.getServerUrl()));
service.setCredentials(credentials);
return service;
} catch (URISyntaxException e) {
e.printStackTrace();
return null;
} catch (Exception e) {
e.printStackTrace();
return null;
}
}