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
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
Copyright © 2016–2018. All rights reserved.