|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.security.FederatedLoginService
public abstract class FederatedLoginService
Abstraction for a login mechanism through external authenticator/identity provider (instead of username/password.)
This extension point adds additional login mechanism for SecurityRealms that
authenticate the user via username/password (which typically extends from AbstractPasswordBasedSecurityRealm.)
The intended use case is protocols like OpenID, OAuth, and other SSO-like services.
The basic abstraction is that:
FederatedLoginService implementation.
FederatedLoginService.FederatedIdentity instance,
then call FederatedLoginService.FederatedIdentity.addToCurrentUser() to record such association.
FederatedLoginService.FederatedIdentity instance, and invoke FederatedLoginService.FederatedIdentity.signin() to sign in that user.
Each FederatedLoginService is exposed to the URL space via Jenkins.getFederatedLoginService(String).
So for example if your url name is "openid", this object gets
"/federatedLoginService/openid" as the URL.
| Nested Class Summary | |
|---|---|
class |
FederatedLoginService.FederatedIdentity
Identity information as obtained from FederatedLoginService. |
static class |
FederatedLoginService.UnclaimedIdentityException
Used in FederatedLoginService.FederatedIdentity.signin() to indicate that the identifier is not currently
associated with anyone. |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Constructor Summary | |
|---|---|
FederatedLoginService()
|
|
| Method Summary | |
|---|---|
static ExtensionList<FederatedLoginService> |
all()
|
abstract String |
getUrlName()
Returns the url name that determines where this FederatedLoginService is mapped to in the URL space. |
abstract Class<? extends FederatedLoginServiceUserProperty> |
getUserPropertyClass()
Returns your implementation of FederatedLoginServiceUserProperty that stores
opaque identifiers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FederatedLoginService()
| Method Detail |
|---|
public abstract String getUrlName()
FederatedLoginService is mapped to in the URL space.
The object is bound to /federatedLoginService/URLNAME/. The url name needs to be unique among all
FederatedLoginServices.
public abstract Class<? extends FederatedLoginServiceUserProperty> getUserPropertyClass()
FederatedLoginServiceUserProperty that stores
opaque identifiers.
public static ExtensionList<FederatedLoginService> all()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||