Tabnine Logo
AuthenticationController
Code IndexAdd Tabnine to your IDE (free)

How to use
AuthenticationController
in
com.atlassian.sal.api.auth

Best Java code snippets using com.atlassian.sal.api.auth.AuthenticationController (Showing top 7 results out of 315)

origin: com.atlassian.refapp/platform-ctk-plugin

@Test
public void testShouldAttemptAuthenticationWhenRequestUnauthenticated() {
  assertTrue("should return true if not authenticated", controller.shouldAttemptAuthentication(createMockUnauthenticatedRequest()));
}
origin: com.atlassian.oauth/atlassian-oauth-service-provider-plugin

private Result getUserLoginResult(HttpServletRequest request, HttpServletResponse response, OAuthMessage message, Consumer consumer, Principal user) {
  // if a user is provided, they must exist and be able to login
  if (user != null && !authenticationController.canLogin(user, request)) {
    LOG.info("Access denied because user:'{}' cannot login", user.getName());
    sendError(response, HttpServletResponse.SC_UNAUTHORIZED, message);
    return new Result.Failure(new OAuthProblem.PermissionDenied(user.getName()));
  }
  LOG.info("Authenticated app '{}' as user '{}' successfully", consumer.getKey(), user == null ? "null" : user.getName());
  return new Result.Success(user);
}
origin: com.atlassian.refapp/platform-ctk-plugin

@Test
public void testShouldNotAttemptAuthenticationWhenRequestAlreadyAuthenticated() {
  assertFalse("should return false if already authenticated", controller.shouldAttemptAuthentication(createMockAuthenticatedRequest("hoho")));
}
origin: com.atlassian.plugins/atlassian-connect-server-core

if (!authenticationController.shouldAttemptAuthentication(request)) {
  return authenticationNotAttempted(request, response);
origin: com.atlassian.plugins/oauth2

if (!authenticationController.shouldAttemptAuthentication(request)) {
  return authenticationNotAttempted(request, response);
origin: com.atlassian.jwt/jwt-plugin

private boolean mayProceed(HttpServletRequest request, HttpServletResponse response)
  if (!authenticationController.shouldAttemptAuthentication(request))
origin: com.atlassian.oauth/atlassian-oauth-service-provider-plugin

private boolean mayProceed(HttpServletRequest request, HttpServletResponse response, OAuthRequestVerifier verifier) {
  if (!authenticationController.shouldAttemptAuthentication(request)) {
    authenticationListener.authenticationNotAttempted(request, response);
    return true;
com.atlassian.sal.api.authAuthenticationController

Most used methods

  • shouldAttemptAuthentication
  • canLogin

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now