Tabnine Logo
OAuth2$Client.getClientId
Code IndexAdd Tabnine to your IDE (free)

How to use
getClientId
method
in
com.netflix.spinnaker.halyard.config.model.v1.security.OAuth2$Client

Best Java code snippets using com.netflix.spinnaker.halyard.config.model.v1.security.OAuth2$Client.getClientId (Showing top 8 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-config

 /**
  * @return True if any core field in an authentication method has a non-empty value. "Core fields"
  * are generally required fields to make an authentication method work, such as client ID/secret,
  * or path to a certficate store.
  */
 private boolean maybeShouldBeEnabled(Authn n) {
  OAuth2 o = n.getOauth2();
  Saml s = n.getSaml();
  Ldap l = n.getLdap();
  IAP i = n.getIap();
  // There isn't a good "core fields" for X509

  return StringUtils.isNotEmpty(o.getClient().getClientId()) ||
    StringUtils.isNotEmpty(o.getClient().getClientSecret()) ||
    StringUtils.isNotEmpty(s.getIssuerId()) ||
    StringUtils.isNotEmpty(s.getKeyStore()) ||
    StringUtils.isNotEmpty(l.getUserDnPattern()) ||
    StringUtils.isNotEmpty(l.getUserSearchBase()) ||
    StringUtils.isNotEmpty(l.getUserSearchFilter()) ||
    StringUtils.isNotEmpty(i.getAudience());
 }
}
origin: spinnaker/halyard

 /**
  * @return True if any core field in an authentication method has a non-empty value. "Core fields"
  * are generally required fields to make an authentication method work, such as client ID/secret,
  * or path to a certficate store.
  */
 private boolean maybeShouldBeEnabled(Authn n) {
  OAuth2 o = n.getOauth2();
  Saml s = n.getSaml();
  Ldap l = n.getLdap();
  IAP i = n.getIap();
  // There isn't a good "core fields" for X509

  return StringUtils.isNotEmpty(o.getClient().getClientId()) ||
    StringUtils.isNotEmpty(o.getClient().getClientSecret()) ||
    StringUtils.isNotEmpty(s.getIssuerId()) ||
    StringUtils.isNotEmpty(s.getKeyStore()) ||
    StringUtils.isNotEmpty(l.getUserDnPattern()) ||
    StringUtils.isNotEmpty(l.getUserSearchBase()) ||
    StringUtils.isNotEmpty(l.getUserSearchFilter()) ||
    StringUtils.isNotEmpty(i.getAudience());
 }
}
origin: spinnaker/halyard

OAuth2.UserInfoMapping userInfoMapping = authnMethod.getUserInfoMapping();
client.setClientId(isSet(clientId) ? clientId : client.getClientId());
client.setClientSecret(isSet(clientSecret) ? clientSecret : client.getClientSecret());
client.setAccessTokenUri(isSet(accessTokenUri) ? accessTokenUri : client.getAccessTokenUri());
origin: spinnaker/halyard

.setClientId(client.getClientId())
.setClientSecret(client.getClientSecret())
.setPreEstablishedRedirectUri(client.getPreEstablishedRedirectUri())
origin: com.netflix.spinnaker.halyard/halyard-config

.setClientId(client.getClientId())
.setClientSecret(client.getClientSecret())
.setPreEstablishedRedirectUri(client.getPreEstablishedRedirectUri())
origin: com.netflix.spinnaker.halyard/halyard-cli

OAuth2.UserInfoMapping userInfoMapping = authnMethod.getUserInfoMapping();
client.setClientId(isSet(clientId) ? clientId : client.getClientId());
client.setClientSecret(isSet(clientSecret) ? clientSecret : client.getClientSecret());
client.setAccessTokenUri(isSet(accessTokenUri) ? accessTokenUri : client.getAccessTokenUri());
origin: spinnaker/halyard

 @Override
 public void validate(ConfigProblemSetBuilder p, OAuth2 n) {
  if (!n.isEnabled()) {
   return;
  }

  if (n.getClient().getClientId() == null) {
   p.addProblem(Problem.Severity.ERROR, "No OAuth2 client id was supplied");
  }

  if (n.getClient().getClientSecret() == null) {
   p.addProblem(Problem.Severity.ERROR, "No OAuth2 client secret was supplied");
  }

  if (n.getProvider() == OAuth2.Provider.GOOGLE &&
    (n.getUserInfoRequirements() == null || !n.getUserInfoRequirements().containsKey("hd"))) {
   p.addProblem(Problem.Severity.WARNING, "Missing 'hd' field within " +
     "userInfoRequirements of Google OAuth provider. This could expose your Spinnaker " +
     "instance to anyone with a Gmail account.", "userInfoRequirements");
  }
 }
}
origin: com.netflix.spinnaker.halyard/halyard-config

 @Override
 public void validate(ConfigProblemSetBuilder p, OAuth2 n) {
  if (!n.isEnabled()) {
   return;
  }

  if (n.getClient().getClientId() == null) {
   p.addProblem(Problem.Severity.ERROR, "No OAuth2 client id was supplied");
  }

  if (n.getClient().getClientSecret() == null) {
   p.addProblem(Problem.Severity.ERROR, "No OAuth2 client secret was supplied");
  }

  if (n.getProvider() == OAuth2.Provider.GOOGLE &&
    (n.getUserInfoRequirements() == null || !n.getUserInfoRequirements().containsKey("hd"))) {
   p.addProblem(Problem.Severity.WARNING, "Missing 'hd' field within " +
     "userInfoRequirements of Google OAuth provider. This could expose your Spinnaker " +
     "instance to anyone with a Gmail account.", "userInfoRequirements");
  }
 }
}
com.netflix.spinnaker.halyard.config.model.v1.securityOAuth2$ClientgetClientId

Popular methods of OAuth2$Client

  • getAccessTokenUri
  • getClientAuthenticationScheme
  • getClientSecret
  • getScope
  • getUserAuthorizationUri
  • setAccessTokenUri
  • setClientAuthenticationScheme
  • setClientId
  • setClientSecret
  • setPreEstablishedRedirectUri
  • setScope
  • setUseCurrentUri
  • setScope,
  • setUseCurrentUri,
  • setUserAuthorizationUri,
  • <init>,
  • getPreEstablishedRedirectUri,
  • getUseCurrentUri

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • onCreateOptionsMenu (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Notification (javax.management)
  • CodeWhisperer 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