public abstract class OAuthSession extends Object implements Serializable
| Constructor and Description |
|---|
OAuthSession(String from,
String redirectUrl,
String domain) |
| Modifier and Type | Method and Description |
|---|---|
org.kohsuke.stapler.HttpResponse |
doCommenceLogin(com.google.api.client.auth.oauth2.AuthorizationCodeFlow flow)
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 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(com.google.api.client.auth.oauth2.AuthorizationCodeFlow flow)
throws IOException
IOExceptionpublic 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
IOExceptionCopyright © 2016–2018. All rights reserved.