Custom Authentication Module

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

Searching TeamCity 4.x Documentation

Table of Contents

Custom authentication module is available for Enterprise version only.

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.

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.

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.