JetBrains / teamcity-azure-active-directory

TeamCity plugin which supports authentication via Microsoft Azure Active Directory
Apache License 2.0
26 stars 19 forks source link

Follow requested URL after login #42

Open SithVicious opened 5 years ago

SithVicious commented 5 years ago

When using Built-in teamcity authentication, a user who requests a different page such as /queue.html will be prompted to login, and then redirected to /queue.html.

With Azure AD plugin this does not happen, users are always directed to /overview.html after logging in using Azure AD.

nejoyer commented 5 years ago

This is a major pain point to me. I'm always following deep links and so ending up on /overview is not helpful. This wouldn't be a big deal if I was able to stay logged in longer, but it seems I'm logged out multiple times per day.

tolache commented 2 years ago

From a support request:

We make heavy use of the Slack Notifier, and folks often times get confused when they click a link to a specific build, and end up at the main TeamCity overview page after logging in via AAD. We noticed in testing the ADO plugin properly redirects back to the specific build link in these same situations.

werner-kapferer-lgs commented 11 months ago

Does it make sense to ping this issue in 2023? If yes: ping :smile:

galvesribeiro commented 10 months ago

Another ping from the future...

galvesribeiro commented 10 months ago

I found a way to get it work. Check my comments here. As long as your active browser is authenticated in AAD AND you had open TeamCity pages at least one (I guess to make sure the TC auth cookie is set), it will work.

All links from Slack will go to the correct place instead of redirecting to home.