public class

AddServiceProviderManuallyServlet

extends AbstractOAuthConfigServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.atlassian.applinks.ui.AbstractApplinksServlet
         ↳ com.atlassian.applinks.ui.AbstractAppLinksAdminOnlyServlet
           ↳ com.atlassian.applinks.core.auth.AbstractAuthServlet
             ↳ com.atlassian.applinks.core.auth.oauth.servlets.AbstractOAuthConfigServlet
               ↳ com.atlassian.applinks.core.auth.oauth.servlets.consumer.AddServiceProviderManuallyServlet

Class Overview

When acting as a consumer and using OAuth to make authenticated request to a service provider this servlet is used to configure outbound OAuth configuration for third-party, non-applinks service provider that don't run our plugin (so we can't just point to their inbound config servlet).

It asks the user to manually provide all oauth information required to communicate with the service provider. This includes the Consumer Key that is assigned to us, as well as the Shared Secret (asymmetric key signing (RSA_SHA1) is not currently supported).

Bound under /applinks/auth/conf/oauth/outbound/3rdparty

Summary

Constants
String CONSUMER_KEY_OUTBOUND
String SERVICE_PROVIDER_ACCESS_TOKEN_URL
String SERVICE_PROVIDER_AUTHORIZE_URL
String SERVICE_PROVIDER_REQUEST_TOKEN_URL
[Expand]
Inherited Constants
From class com.atlassian.applinks.core.auth.oauth.servlets.AbstractOAuthConfigServlet
From class com.atlassian.applinks.ui.AbstractApplinksServlet
From interface com.atlassian.applinks.ui.XsrfProtectedServlet
[Expand]
Inherited Fields
From class com.atlassian.applinks.core.auth.AbstractAuthServlet
From class com.atlassian.applinks.ui.AbstractAppLinksAdminOnlyServlet
From class com.atlassian.applinks.ui.AbstractApplinksServlet
Protected Constructors
AddServiceProviderManuallyServlet(I18nResolver i18nResolver, MessageFactory messageFactory, TemplateRenderer templateRenderer, WebResourceManager webResourceManager, ApplicationLinkService applicationLinkService, AdminUIAuthenticator adminUIAuthenticator, AuthenticationConfigurationManager authenticationConfigurationManager, ConsumerService consumerService, InternalHostApplication internalHostApplication, BatchedJSONi18NBuilderFactory batchedJSONi18NBuilderFactory, LoginUriProvider loginUriProvider, DocumentationLinker documentationLinker, WebSudoManager webSudoManager, XsrfTokenAccessor xsrfTokenAccessor, XsrfTokenValidator xsrfTokenValidator)
Protected Methods
final String checkRequiredParameter(HttpServletRequest request, String parameterName, Map<StringMessage> errorMessages, String messageKey)
void doGet(HttpServletRequest req, HttpServletResponse resp)
Displays the current oauth service provider configuration for this third-party application link, or a message saying oauth is not configured.
void doPost(HttpServletRequest req, HttpServletResponse resp)
[Expand]
Inherited Methods
From class com.atlassian.applinks.core.auth.oauth.servlets.AbstractOAuthConfigServlet
From class com.atlassian.applinks.core.auth.AbstractAuthServlet
From class com.atlassian.applinks.ui.AbstractAppLinksAdminOnlyServlet
From class com.atlassian.applinks.ui.AbstractApplinksServlet
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Constants

public static final String CONSUMER_KEY_OUTBOUND

Constant Value: "consumerKey.outbound"

public static final String SERVICE_PROVIDER_ACCESS_TOKEN_URL

Constant Value: "serviceProvider.accessTokenUrl"

public static final String SERVICE_PROVIDER_AUTHORIZE_URL

Constant Value: "serviceProvider.authorizeUrl"

public static final String SERVICE_PROVIDER_REQUEST_TOKEN_URL

Constant Value: "serviceProvider.requestTokenUrl"

Protected Constructors

protected AddServiceProviderManuallyServlet (I18nResolver i18nResolver, MessageFactory messageFactory, TemplateRenderer templateRenderer, WebResourceManager webResourceManager, ApplicationLinkService applicationLinkService, AdminUIAuthenticator adminUIAuthenticator, AuthenticationConfigurationManager authenticationConfigurationManager, ConsumerService consumerService, InternalHostApplication internalHostApplication, BatchedJSONi18NBuilderFactory batchedJSONi18NBuilderFactory, LoginUriProvider loginUriProvider, DocumentationLinker documentationLinker, WebSudoManager webSudoManager, XsrfTokenAccessor xsrfTokenAccessor, XsrfTokenValidator xsrfTokenValidator)

Protected Methods

protected final String checkRequiredParameter (HttpServletRequest request, String parameterName, Map<StringMessage> errorMessages, String messageKey)

protected void doGet (HttpServletRequest req, HttpServletResponse resp)

Displays the current oauth service provider configuration for this third-party application link, or a message saying oauth is not configured. Also contains a button/link to configure oauth manually.

Throws
ServletException
IOException

protected void doPost (HttpServletRequest req, HttpServletResponse resp)

Throws
ServletException
IOException