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

Reuse existing auth session. #61

Open trump-max opened 6 months ago

trump-max commented 6 months ago

Hello Folks,

I used this plugin to implement authentication with Microsoft Entra Id for authentication in TeamCity and it works pretty good.

I noticed, that it is not reusing existing Azure Auth session. Auth session lives until tab is open and it is not identifying existing sessions. For example if logged in outlook or any other product I still need provide credentials when I open new tab with TeamCity.

Could you, please, advise if it possible to configure this plugin to reuse existing Auth session? Is it possible to keep session alive until browser is not closed?

Danielku15 commented 6 months ago

Seems this plugin is not using the refresh tokens. Azure AD ID tokens are valid for 1 hour and then need to be refreshed with the refresh token. Would be great if this plugin can add support for refresh tokens and keep the session alive for a certain time.

paulcsiki commented 3 weeks ago

Any chance we can get an update for the plugin? We're also affected by this.