none
Authenticate an EWS application by using OAuth RRS feed

Answers

  • Hi,

    We used the javascript to get get the token.

     if (adalAuthenticationService.userInfo.isAuthenticated) {
                $scope.message = "Welcome, " + adalAuthenticationService.userInfo.userName;
    
                var outlookToken = adalAuthenticationService.acquireToken("https://outlook.office365.com");
                $scope.accessToken = outlookToken.$$state.value;
                
            }
            else {
                $scope.message = "Welcome. You are not logged in.";
            }


    Regards,

    Sandip

    Wednesday, February 10, 2016 5:50 AM

All replies

  • Hi Sandip,

    This forum is for developers discussing developing issues about Office add-ins. Since the issue is more relative to authenticate with EWS, I would like to move it to Exchange Server Development forum.

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.

    Thanks for your understanding.

    Regards & Fei


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, January 8, 2016 3:24 AM
  • Hi,

    We used the javascript to get get the token.

     if (adalAuthenticationService.userInfo.isAuthenticated) {
                $scope.message = "Welcome, " + adalAuthenticationService.userInfo.userName;
    
                var outlookToken = adalAuthenticationService.acquireToken("https://outlook.office365.com");
                $scope.accessToken = outlookToken.$$state.value;
                
            }
            else {
                $scope.message = "Welcome. You are not logged in.";
            }


    Regards,

    Sandip

    Wednesday, February 10, 2016 5:50 AM