Greaka
Greaka

Reputation: 755

TFS custom widget link unauthorized

I am currently building a custom widget which has links in it. If a link is clicked, the newly opened tab has no authorization. It says the unauthorized access is forbidden. Client authorization required.

enter image description here I am building the link via javascript.

var newLinkButton = (url, text) => $('<a>', {
    class: 'btn btn-default btn-xs',
    href: url,
    role: 'button',
    text: text
});

and set the base target in the header to _blank

<base target="_blank" />

The TFS sets access right equal to the ones from the iframe in which it was called. That is anonym. How do I tell TFS to take an already existing authorization?

Upvotes: 0

Views: 188

Answers (1)

starian chen-MSFT
starian chen-MSFT

Reputation: 33708

You need to redirect to another page (not open a new page) from current page. Change _blank to _top.

<base target="_top" />

Upvotes: 1

Related Questions