public abstract class OAuthSession extends Object
Constructor and Description |
---|
OAuthSession(com.google.api.client.auth.oauth2.AuthorizationCodeFlow flow,
String from,
String redirectUrl,
String domain) |
Modifier and Type | Method and Description |
---|---|
org.kohsuke.stapler.HttpResponse |
doCommenceLogin()
Starts the login session.
|
org.kohsuke.stapler.HttpResponse |
doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
When the identity provider is done with its thing, the user comes back here.
|
static OAuthSession |
getCurrent()
Gets the
OAuthSession associated with HTTP session in the current extend. |
protected String |
getFrom()
Where was the user trying to navigate to when they had to login?
|
protected abstract org.kohsuke.stapler.HttpResponse |
onSuccess(String authorizationCode) |
public org.kohsuke.stapler.HttpResponse doCommenceLogin() throws IOException
IOException
public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request) throws IOException
IOException
protected String getFrom()
protected abstract org.kohsuke.stapler.HttpResponse onSuccess(String authorizationCode) throws IOException
IOException
public static OAuthSession getCurrent()
OAuthSession
associated with HTTP session in the current extend.Copyright © 2016. All rights reserved.