Class OpenIdSession

java.lang.Object
hudson.plugins.openid.OpenIdSession

public abstract class OpenIdSession extends Object
Represents state for an OpenID authentication.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • OpenIdSession

      public OpenIdSession(org.openid4java.consumer.ConsumerManager manager, org.openid4java.discovery.DiscoveryInformation endpoint, String finishUrl)
    • OpenIdSession

      public OpenIdSession(org.openid4java.consumer.ConsumerManager manager, String openid, String finishUrl) throws org.openid4java.OpenIDException
      Throws:
      org.openid4java.OpenIDException
  • Method Details

    • doCommenceLogin

      public org.kohsuke.stapler.HttpResponse doCommenceLogin() throws IOException, org.openid4java.OpenIDException
      Starts the login session.
      Throws:
      IOException
      org.openid4java.OpenIDException
    • doFinishLogin

      public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest2 request) throws IOException, org.openid4java.OpenIDException
      When the identity provider is done with its thing, the user comes back here.
      Throws:
      IOException
      org.openid4java.OpenIDException
    • onSuccess

      protected abstract org.kohsuke.stapler.HttpResponse onSuccess(Identity identity) throws IOException
      Throws:
      IOException
    • getCurrent

      public static OpenIdSession getCurrent()
      Gets the OpenIdSession associated with HTTP session in the current extend.