hudson.plugins.collabnet.auth
Class CollabNetSecurityRealm

java.lang.Object
  extended by hudson.security.SecurityRealm
      extended by hudson.plugins.collabnet.auth.CollabNetSecurityRealm
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.security.SecurityRealm>

public class CollabNetSecurityRealm
extends hudson.security.SecurityRealm


Nested Class Summary
static class CollabNetSecurityRealm.DescriptorImpl
          The CollabNetSecurityRealm Descriptor class.
 
Nested classes/interfaces inherited from class hudson.security.SecurityRealm
hudson.security.SecurityRealm.SecurityComponents
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.security.SecurityRealm
AUTHENTICATED_AUTHORITY, LIST, NO_AUTHENTICATION
 
Constructor Summary
CollabNetSecurityRealm(java.lang.String collabNetUrl, java.lang.Boolean enableAuthFromCTF, java.lang.Boolean enableAuthToCTF)
           
 
Method Summary
 javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
          Override the default createFilter.
 hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
           
 java.lang.String getCollabNetUrl()
           
 boolean getEnableSSOAuthFromCTF()
          Single sign on preference governing making hudson read CTF's SSO token
 boolean getEnableSSOAuthToCTF()
          Single sign on preference governing making hudson login to CTF upon authenticating
 boolean getEnableSSORedirect()
          Whether after singole singon into CTF, we should automatically redirect back to Hudson.
 
Methods inherited from class hudson.security.SecurityRealm
all, allowsSignup, canLogOut, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, loadGroupByGroupname, loadUserByUsername, validateCaptcha
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollabNetSecurityRealm

public CollabNetSecurityRealm(java.lang.String collabNetUrl,
                              java.lang.Boolean enableAuthFromCTF,
                              java.lang.Boolean enableAuthToCTF)
Method Detail

getCollabNetUrl

public java.lang.String getCollabNetUrl()

getEnableSSOAuthFromCTF

public boolean getEnableSSOAuthFromCTF()
Single sign on preference governing making hudson read CTF's SSO token

Returns:
true to enable

getEnableSSOAuthToCTF

public boolean getEnableSSOAuthToCTF()
Single sign on preference governing making hudson login to CTF upon authenticating

Returns:
true to enable

getEnableSSORedirect

public boolean getEnableSSORedirect()
Whether after singole singon into CTF, we should automatically redirect back to Hudson.

Returns:
true to enable

createSecurityComponents

public hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
Specified by:
createSecurityComponents in class hudson.security.SecurityRealm

createFilter

public javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
Override the default createFilter. We want to use one that does not return a 403 on login redirect because that may cause problems when Hudson is run behind a proxy.

Overrides:
createFilter in class hudson.security.SecurityRealm


Copyright © 2010. All Rights Reserved.