sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

AadHttpClient constructor removed from 1.5 plusbeta release

Open OliverZeiser opened this issue 8 years ago • 6 comments

Category

  • [X] Question
  • [X] Bug

Expected or Desired Behavior

We should be able to use the AadHttpClient in 1.5 plusbeta. Thats what the beta is for, right?

Observed Behavior

The Typescript Definition file states Excluded from this release type: __constructor So how should we use the AadHttpClient?

OliverZeiser avatar Jun 10 '18 10:06 OliverZeiser

Possible duplicate of https://github.com/SharePoint/sp-dev-docs/issues/1964

MortenGuldbaek avatar Jun 11 '18 08:06 MortenGuldbaek

We are working on fixing this with updated npm packages within upcoming days. Sorry for the inconvenience.

VesaJuvonen avatar Jun 12 '18 06:06 VesaJuvonen

This is what I use and it works: let _client = new (AadHttpClient as any)(this.context.serviceScope, 'aad app id')

muradaliyev avatar Jun 12 '18 15:06 muradaliyev

Solution here #2093

vsoderholm avatar Jun 22 '18 04:06 vsoderholm

Sorry - this should have been closed a long time ago.

patmill avatar Sep 02 '21 19:09 patmill

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

ghost avatar Sep 10 '21 00:09 ghost