-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Milestone
Description
Hi all,
Cannot make this popup flow work in anyway, here is the code I'm using:
const tokenProvider = await this.context.aadTokenProviderFactory.getTokenProvider();
const spEventObserver:ISPEventObserver = { componentId: this.componentId, instanceId:this.instanceId, isDisposed:false, dispose:null};
tokenProvider.onBeforeRedirectEvent.add(spEventObserver, (eventArgs: IBeforeRedirectEventArgs) =>{
eventArgs.cancel();
})
tokenProvider.popupEvent.add(spEventObserver, (eventArgs: IPopupEventArgs) =>
{ eventArgs.requestPopup(); eventArgs.showPopup(); })
return await tokenProvider.getToken(reachResourceUrl);
What am I doing wrong?
Metadata
Metadata
Assignees
Labels
Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:docsCategory: SharePoint developer/development documentation relatedCategory: SharePoint developer/development documentation relatedarea:spfxCategory: SharePoint Framework (not extensions related)Category: SharePoint Framework (not extensions related)status:working-on-itKnown issue / feature being addressed. Will use other "status:*" labels & comments for more detail.Known issue / feature being addressed. Will use other "status:*" labels & comments for more detail.type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work