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

[Feature?] Missing AppIdentityToken from WebServices.Auth #22

Open
Harkole opened this issue Mar 23, 2018 · 4 comments
Open

[Feature?] Missing AppIdentityToken from WebServices.Auth #22

Harkole opened this issue Mar 23, 2018 · 4 comments

Comments

@Harkole
Copy link

Harkole commented Mar 23, 2018

I was hoping to use the package to perform the AppIdentityToken routine provided at https://docs.microsoft.com/en-us/outlook/add-ins/validate-an-identity-token [code shown below] but I can't seem to find the "Auth" namespaces.

using Microsoft.Exchange.WebServices.Auth.Validation;

AppIdentityToken ValidateIdentityToken(string rawToken, string expectedAudience)
{
    try
    {
        AppIdentityToken appIdToken = AuthToken.Parse(rawToken) as AppIdentityToken;
        appIdToken.Validate(new Uri(expectedAudience));

        // No exception, validation succeeded
        return appIdToken;
    }
    catch (TokenValidationException ex)
    {
        throw new Exception(string.Format("Token validation failed: {0}", ex.Message));
    }
}

I'm hoping you'll tell me I'm being blind! If it's not implemented is there any plan to implement? I've got a API that's pretty much complete and have been asked to add basic Outlook Web Plugin calls to it but the whole thing is written in .Net Core.

@Blackbaud-AdamHickey
Copy link

@Harkole Were you able to resolve this? I have the same issue.

@Will-Blackburn
Copy link

@Blackbaud-AdamHickey I've just had a look back at the project (it's been archived off) and I don't think I did looking at the code. However, we have moved over to looking at the Microsoft Graph API as it provides exactly what we need and in addition is easier for the end user/client to setup/manage.

I can't remember where exactly but I did see something about EWS being discontinued pretty soon

@Blackbaud-AdamHickey
Copy link

Interesting. I'll check it out.

@svrooij
Copy link

svrooij commented Jun 29, 2019

I can't remember where exactly but I did see something about EWS being discontinued pretty soon

You’re wrong, they are only discontinuing the basic authentication again EWS in Office 365. See https://techcommunity.microsoft.com/t5/Exchange-Team-Blog/Upcoming-changes-to-Exchange-Web-Services-EWS-API-for-Office-365/ba-p/608055

EWS will continue to work on premise and if you switch the authentication to some other scheme (like oauth tokens or some other supported scheme)

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

4 participants