Skip to end of metadata
Go to start of metadata
You are viewing documentation of TeamCity 6.5.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version.
Search

Table of Contents

Custom authentication API is based on Sun JAAS API. To provide your own authentication scheme, you should provide a login module class which must implement interface javax.security.auth.spi.LoginModule and register it in the jetbrains.buildServer.serverSide.auth.LoginConfiguration.

To make the authentication module active the login module class name can then be used during configuring Configuring Authentication Settings.

For example:

CustomLoginModule.java

Now we should register this module in the server. To do so, we create a login module descriptor:

CustomLoginModuleDescriptor.java

Finally we should create build-server-plugin-ourUserAuth.xml and zip archive with plugin classes as it is described here and write there CustomLoginModuleDescriptor bean:

Now you should be able to change authentication scheme by specifying name of your class in the main-config.xml file, read more.