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 Summary

    Constructors
    Constructor
    Description
    OpenIdSession(org.openid4java.consumer.ConsumerManager manager, String openid, String finishUrl)
     
    OpenIdSession(org.openid4java.consumer.ConsumerManager manager, org.openid4java.discovery.DiscoveryInformation endpoint, String finishUrl)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.kohsuke.stapler.HttpResponse
    Starts the login session.
    org.kohsuke.stapler.HttpResponse
    doFinishLogin(org.kohsuke.stapler.StaplerRequest2 request)
    When the identity provider is done with its thing, the user comes back here.
    Gets the OpenIdSession associated with HTTP session in the current extend.
    protected abstract org.kohsuke.stapler.HttpResponse
    onSuccess(Identity identity)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.