Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use modern authentication instead of basic authentication in ews-android-api #29

Closed
arunsankar8 opened this issue Jun 15, 2020 · 7 comments

Comments

@arunsankar8
Copy link

Hi @alipov

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, So how can I use modern authentication instead of basic authentication in my application to continue using the ews-android-api in my projects. Looking forward to your suggestions and support.

The sample code used for 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);
    }
@arunsankar8 arunsankar8 changed the title How to use modern authentication instead of basic authentication How to use modern authentication instead of basic authentication in ews-android-api Jun 15, 2020
@alipov
Copy link
Owner

alipov commented Jun 15, 2020

Hi @arunsankar8,

Since the question relates to the core functionality (rather than to Android adjustments), I'd suggest you to direct it to ews-java maintainers.

@arunsankar8
Copy link
Author

Thanks @alipov.

@arunsankar8
Copy link
Author

arunsankar8 commented Jul 6, 2020

Hi @alipov,
I have raised the same question in the ews-java repo, but there aren't any responses till now from their side. Is there any way to implement modern authentication in the application you know of, the steps described in Microsoft documentation to implement modern authentication is for C#. Can you please take a look at it. Can we implement modern authentication in android.? It will be really helpful if you could help.

@arunsankar8 arunsankar8 reopened this Jul 6, 2020
@alipov
Copy link
Owner

alipov commented Jul 6, 2020

Hi @arunsankar8,

I don't have any immediate plans implementing modern authentication support.

I guess you can look into microsoft-authentication-library-for-android or AppAuth-Android and see if it can be used to easily add such support. Also, it seems that some attempts to add OAuth2 support were made here and here.

@arunsankar8
Copy link
Author

Hi @alipov

Thanks for the support, I will try to use these resources. Thanks

@arunsankar8
Copy link
Author

Hi @alipov the MSAL library from the above documentation is used for authentication in Microsoft Graph API, can we use that for the EWS authentication also?

https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-authenticate-an-ews-application-by-using-oauth This was the Microsoft documentation on implementing the modern auth, can we use this in our Android application? Any idea on these

@alipov
Copy link
Owner

alipov commented Jul 8, 2020

Perhaps. I don't have any prior experience with this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants