mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-18 06:22:29 +00:00
login URL is different if we are to be authenticated by the container.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6320 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
63ed5d433e
commit
774cd11aab
3 files changed
+18
-1
No files matched your search
@@ -23,6 +23,15 @@ public final class LegacySecurityRealm extends SecurityRealm implements Authenti
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* To have the username/password authenticated by the container,
|
||||
* submit the form to the URL defined by the servlet spec.
|
||||
*/
|
||||
@Override
|
||||
public String getLoginUrl() {
|
||||
return "j_security_check";
|
||||
}
|
||||
|
||||
public Descriptor<SecurityRealm> getDescriptor() {
|
||||
return DESCRIPTOR;
|
||||
}
|
||||
|
||||
@@ -33,6 +33,14 @@ public abstract class SecurityRealm implements Describable<SecurityRealm>, Exten
|
||||
*/
|
||||
public abstract AuthenticationManager createAuthenticationManager();
|
||||
|
||||
/**
|
||||
* Returns the URL to submit a form for the authentication.
|
||||
* Normally there's no need to override this.
|
||||
*/
|
||||
public String getLoginUrl() {
|
||||
return "j_acegi_security_check";
|
||||
}
|
||||
|
||||
/**
|
||||
* Picks up the instance of the given type from the spring context.
|
||||
* If there are multiple beans of the same type or if there are none,
|
||||
|
||||
Reference in new issue
Block a user