public abstract class OAuthSession extends Object
| Constructor and Description |
|---|
OAuthSession(com.google.api.client.auth.oauth2.AuthorizationCodeFlow flow,
String from,
String redirectUrl) |
| 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.
|
protected org.kohsuke.stapler.HttpResponse |
doRequestAuthorizationCode() |
com.google.api.client.auth.oauth2.Credential |
getCredential() |
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) |
void |
setCredential(com.google.api.client.auth.oauth2.Credential cred) |
public com.google.api.client.auth.oauth2.Credential getCredential()
public void setCredential(com.google.api.client.auth.oauth2.Credential cred)
public org.kohsuke.stapler.HttpResponse doCommenceLogin()
throws IOException
IOExceptionprotected org.kohsuke.stapler.HttpResponse doRequestAuthorizationCode()
public org.kohsuke.stapler.HttpResponse doFinishLogin(org.kohsuke.stapler.StaplerRequest request)
throws IOException
IOExceptionprotected String getFrom()
protected abstract org.kohsuke.stapler.HttpResponse onSuccess(String authorizationCode) throws IOException
IOExceptionpublic static OAuthSession getCurrent()
OAuthSession associated with HTTP session in the current
extend.Copyright © 2004-2018. All Rights Reserved.