Serving a static html file from TemCity for authenticating google API
I'm using the plugin https://plugins.jetbrains.com/plugin/9177-teamcity-oauth to allow our users to log on to TeamCity via their Google accounts.
Google requires domain ownership verification by serving a special static html file. The problem is that our TeamCity is installed via the CloudFormation on AWS and the server exists within a docker so there is no place for me to actually put that html in a way that https://out-teamcity-url/auth.html will be accessible.
Please sign in to leave a comment.
Hi Alon,
specific customization for the server might be hard if you are using templates on docker. What you might want to consider would be setting up your own plugin, either by replacing the oauth with a modified version to handle that (it's open source), or by creating simply a new one from scratch that you can add to your own server.
Another option could be to add some proxy server in front of teamcity that would redirect those requests to a static html page where you can set it up.