Lync 2. 01. 3 to Exchange 2. Oauth problem. Hi,I am having a problem getting OAuth to work from Exchange 2. Lync 2. 01. 3. I think the problem is to do with that the OAuth is configured for domanname. I cannot figure this outany ideas? ![]()
I run: Test- OAuth. Connectivity - Service EWS - Target. Uri https: //exchserver. Mailbox "Jack"[PS] C: \Program Files\Microsoft\Exchange Server\V1. Scripts> Test- OAuth. Connectivity - Service EWS - Target. Uri https: //exchserver. ![]() Exchange 2007 Outlook Web Access knowledge base, including OWA 2007 articles, white papers, tips, frequently asked questions and software links. ![]() I use EWS to get exchange emails, but how can i get plain text from email body, without html? Now i use this: EmailMessage item = (EmailMessage)outbox.Items[i]; item. Mailbox "Jack" |fl. Runspace. Id : 5e. Task : Checking EWS API Call Under Oauth. Detail : The configuration was last successfully loaded at 0. UTC. This was 1. 05. The token cache is being cleared because "use cached token" was set to false. Exchange Outbound Oauth Log: Client request ID: 9cdbfe. Information: [OAuth. Credentials: Authenticate] entering Information: [OAuth. Credentials: Authenticate] challenge from 'https: //exchserver. Exchange. asmx' received: Bearer client_id="0. Negotiate,NTLM Information: [OAuth. Credentials: Get. Token] client- id: '0. Information: [OAuth. Credentials: Get. Token] start building a token for the user domain 'domainname. Information: [OAuth. Token. Builder: Get. App. Token] start building the apptoken Information: [OAuth. Token. Builder: Get. App. Token] checking enabled auth servers Error: [OAuth. Token. Builder: Get. App. Token] unable to continue building token; no locally configured issuer was in the trusted_issuer list, realm from challenge was also empty. Error: The trusted issuers contained the following entries '0. None of them are configured locally. Exchange Response Details: HTTP response message: Exception: System. Net. Web. Exception: The request was aborted: The request was canceled. Microsoft. Exchange. Security. OAuth. OAuth. Token. Request. Failed. Exception: The trusted issuers contained the following entries '0. None of them are configured locally. Microsoft. Exchange. Security. OAuth. OAuth. Token. Builder. Get. App. Token(String application. Id, String destination. Host, String realm. From. Challenge, Issuer. Metadata[] trusted. Issuers. From. Challenge, String user. Domain) at Microsoft. Exchange. Security. OAuth. OAuth. Token. Builder. Get. App. With. User. Token(String application. Id, String destination. Host, String realm. From. Challenge, Issuer. Metadata[] trusted. Issuers. From. Challenge, String user. Domain, Claim. Provider claim. Provider) at Microsoft. Exchange. Security. OAuth. OAuth. Credentials. Get. Token(Web. Request web. Request, Http. Authentication. Challenge challenge. Object) at Microsoft. Exchange. Security. OAuth. OAuth. Credentials. Authenticate(String challenge. String, Web. Request web. Request, Boolean pre. Authenticate) at Microsoft. Exchange. Security. OAuth. OAuth. Credentials. OAuth. Authentication. Module. Authenticate(String challenge, Web. Request request, ICredentials credentials) at System. Net. Authentication. Manager. Authenticate(String challenge, Web. Request request, ICredentials credentials) at System. Net. Authentication. State. Attempt. Authenticate(Http. Web. Request http. Web. Request, ICredentials auth. Info) at System. Net. Http. Web. Request. Check. Resubmit. For. Auth() at System. Net. Http. Web. Request. Check. Resubmit(Exception& e, Boolean& disable. Upload) at System. Net. Http. Web. Request. Do. Submit. Request. Processing(Exception& exception) at System. Net. Http. Web. Request. Process. Response() at System. Net. Http. Web. Request. Set. Response(Core. Response. Data core. Response. Data) - -- End of inner exception stack trace - -- at System. Net. Http. Web. Request. Get. Response() at Microsoft. Exchange. Monitoring. Test. OAuth. Connectivity. Helper. Send. Exchange. OAuth. Request(ADUser user, String org. Domain, Uri target. Uri, String& diagnostic. Message, Boolean app. Only, Boolean use. Cached. Token, Boolean reload. Config)Result. Type : Error. Identity : Microsoft. Exchange. Security. OAuth. Validation. Result. Node. Id. Is. Valid : True. Object. State : New. Select all. Open in new window. It appears to work fine from Lync 2. Exchange 2. 01. 3. When I run: Test- Cs. Ex. Storage. Connectivity - sipuri jack@domainname. Binding Nettcp - Verbose in Lync 2. I get a successful outcome: PS C: \Users\administrator. Test- Cs. Ex. Storage. Connectivity - sipuri jack@domainname. Binding Nettcp - Verbose. VERBOSE: Successfully opened a connection to storage service at localhost using binding: Nettcp. VERBOSE: Create message. VERBOSE: Execute Exchange Storage Command. VERBOSE: Processing web storage response for Ex. Create. Item Success.,result=Success, activity. Id=c. 2ae. 44. 46- bb. VERBOSE: Activity tracing: 2. Autodiscover, send Get. User. Settings request,SMTP=Jack@domainname. Autodiscover. Uri=https: //autodiscover. Web Proxy=< NULL> 2. Autodiscover. EWSMA trace,type=Autodiscover. Request. Http. Headers, message=< Trace. Tag="Autodiscover. Request. Http. Headers" Tid="9" Time="2. Z"> POST /autodiscover/autodiscover. HTTP/1. 1. Content- Type: text/xml; charset=utf- 8. Accept: text/xml. User- Agent: Exchange. Services. Client/1. Trace> 2. 01. 4/1. Autodiscover. EWSMA trace, type=Autodiscover. Request,message=< Trace Tag="Autodiscover. Request" Tid="9" Time="2. Z"Version="1. 5. 0. Envelopexmlns: a="http: //schemas. Autodiscover"xmlns: wsa="http: //www. XMLSchema- instance"xmlns: soap="http: //schemas. Header> < a: Requested. Server. Version> Exchange. Requested. Server. Version> < wsa: Action> http: //schemas. Autodiscover/Autodiscover/Get. User. Settings< /wsa: Action> < wsa: To> https: //autodiscover. To> < /soap: Header> < soap: Body> < a: Get. User. Settings. Request. Messagexmlns: a="http: //schemas. Autodiscover"> < a: Request> < a: Users> < a: User> < a: Mailbox> Jack@domainname. Mailbox> < /a: User> < /a: Users> < a: Requested. Settings> < a: Setting> Internal. Ews. Url< /a: Setting> < a: Setting> External. Ews. Url< /a: Setting> < a: Setting> External. Ews. Version< /a: Setting> < /a: Requested. Settings> < /a: Request> < /a: Get. User. Settings. Request. Message> < /soap: Body> < /soap: Envelope> < /Trace> 2. Autodiscover. EWSMA trace,type=Autodiscover. Response. Http. Headers, message=< Trace. Tag="Autodiscover. Response. Http. Headers" Tid="9" Time="2. Z"> HTTP/1. 1 2. OKTransfer- Encoding: chunked. Cache- Control: private. Content- Type: text/xml; charset=utf- 8. Set- Cookie: Client. Id=ADPZOZUUIDKUHDTEIYW; expires=Tue, 2. Dec- 2. 01. 5 1. 1: 4. GMT; path=/; Http. Only,X- Back. End. Cookie=actas. 1(sid: S- 1- 5- 2. Jack@domainname. co. Lnp. 2ej. Jq. Bx. Insqbxpv. Sz. 8r. Hx. 9LLzp. 7O0sb. Ozcn. Szcqcm. Zqem. YHNz. 87. K0s/O0s. Hq. 87. Oxcv. Nxcr. G; expires=Wed, 2. Jan- 2. 01. 5 1. 1: 4. GMT; path=/autodiscover; secure; Http. Only. Server: Microsoft- IIS/8. X- Calculated. BETarget: exchserver. X- Diag. Info: EXCHSERVER2. X- BEServer: EXCHSERVER2. X- Asp. Net- Version: 4. X- Powered- By: ASP. NET,ARR/2. 5. X- FEServer: EXCHSERVER2. Date: Mon, 2. 9 Dec 2. GMT< /Trace> 2. Autodiscover. EWSMA trace, type=Autodiscover. Response,message=< Trace Tag="Autodiscover. Response" Tid="9" Time="2. Z"Version="1. 5. 0. Envelope xmlns: s="http: //schemas. Header> < a: Actions: must. Understand="1"> http: //schemas. Autodiscover/Autodiscover/Get. User. Settings. Response< /a: Action> < h: Server. Version. Infoxmlns: h="http: //schemas. Autodiscover"xmlns: i="http: //www. XMLSchema- instance"> < h: Major. Version> 1. 5< /h: Major. Version> < h: Minor. Version> 0< /h: Minor. Version> < h: Major. Build. Number> 1. Major. Build. Number> < h: Minor. Build. Number> 2. Minor. Build. Number> < h: Version> Exchange. SP1< /h: Version> < /h: Server. Version. Info> < /s: Header> < s: Body> < Get. User. Settings. Response. Messagexmlns="http: //schemas. Autodiscover"> < Response xmlns: i="http: //www. XMLSchema- instance"> < Error. Code> No. Error< /Error. Code> < Error. Message /> < User. Responses> < User. Response> < Error. Code> No. Error< /Error. Code> < Error.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2017
Categories |