# Authenticating TeamCity Builds to External Services With OIDC

DevFeed: [Authenticating TeamCity Builds to External Services With OIDC](<https://devfeed.tech/articles/authenticating-teamcity-builds-to-external-services-with-oidc-50920.md>)

Original publisher: [Read original article](<https://blog.jetbrains.com/teamcity/2026/09/authenticating-teamcity-builds-with-oidc/>)

Author: Igor Brovtsin

Published: 2026-09-01T06:58:08Z

Content type: tutorial

Language: en

Sources: [TeamCity](<https://devfeed.tech/sources/teamcity-powerful-ci-cd-for-devops-centric-teams-the-jetbrains-blog.md>)

Topics: [OpenID connect (OIDC)](<https://devfeed.tech/topics/oidc.md>), [teamcity](<https://devfeed.tech/topics/teamcity.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>)

Tags: [addition](<https://devfeed.tech/tags/addition.md>), [artifacts](<https://devfeed.tech/tags/artifacts.md>), [build](<https://devfeed.tech/tags/build.md>), [builds](<https://devfeed.tech/tags/builds.md>), [can](<https://devfeed.tech/tags/can.md>), [cd](<https://devfeed.tech/tags/cd.md>), [ci](<https://devfeed.tech/tags/ci.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [environments](<https://devfeed.tech/tags/environments.md>), [external](<https://devfeed.tech/tags/external.md>), [external-services](<https://devfeed.tech/tags/external-services.md>), [logs](<https://devfeed.tech/tags/logs.md>), [news](<https://devfeed.tech/tags/news.md>), [oidc](<https://devfeed.tech/tags/oidc.md>), [operational](<https://devfeed.tech/tags/operational.md>), [others](<https://devfeed.tech/tags/others.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [security](<https://devfeed.tech/tags/security.md>), [services](<https://devfeed.tech/tags/services.md>), [teamcity](<https://devfeed.tech/tags/teamcity.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

TeamCity's OIDC JWT plugin lets builds authenticate to services such as AWS and Google Cloud using short-lived signed identity tokens instead of stored static credentials. Consumers validate token signatures using issuer metadata and public keys, then check audience and validity; some accept tokens directly, while others exchange them for temporary credentials. The plugin supports RSA- or ECDSA-based signing, key rotation, and a configurable issuer URL for instances that cannot be exposed publicly. Install it from JetBrains Marketplace; it requires Java 17 and TeamCity 2025.11 or later. The build-parameter feature issues configurable-lifetime tokens at build start (defaulting to the build timeout or 10 minutes), while the on-demand HTTP feature issues tokens during the build with a fixed five-minute lifetime. Separate features can issue single-audience tokens. Configure the plugin before integrations, since configuration changes may disrupt them; audience and lifetime requirements vary by service.

## Source excerpt

Static credentials in CI/CD environments are a significant source of security risks and operational overhead. They can be accidentally leaked through logs and build artifacts. And you can never be sure who's copying, saving, or sharing them with others during the CI/CD setup process. In addition, they require regular rotation to meet security requirements. That's [...]