Tabnine Logo
AuthnRequest.getAssertionConsumerServiceURL
Code IndexAdd Tabnine to your IDE (free)

How to use
getAssertionConsumerServiceURL
method
in
org.opensaml.saml.saml2.core.AuthnRequest

Best Java code snippets using org.opensaml.saml.saml2.core.AuthnRequest.getAssertionConsumerServiceURL (Showing top 7 results out of 315)

origin: org.apereo.cas/cas-server-support-saml-idp-core

private static AssertionConsumerService getAssertionConsumerServiceFromRequest(final RequestAbstractType authnRequest, final String binding) {
  if (authnRequest instanceof AuthnRequest) {
    val acsUrl = AuthnRequest.class.cast(authnRequest).getAssertionConsumerServiceURL();
    if (StringUtils.isBlank(acsUrl)) {
      return null;
    }
    LOGGER.debug("Using assertion consumer service url [{}] with binding [{}] from authentication request", acsUrl, binding);
    val builder = new AssertionConsumerServiceBuilder();
    val endpoint = builder.buildObject(AssertionConsumerService.DEFAULT_ELEMENT_NAME);
    endpoint.setBinding(binding);
    endpoint.setResponseLocation(acsUrl);
    endpoint.setLocation(acsUrl);
    return endpoint;
  }
  return null;
}
origin: org.opensaml/opensaml-saml-impl

if (req.getAssertionConsumerServiceURL() != null) {
  domElement.setAttributeNS(null, AuthnRequest.ASSERTION_CONSUMER_SERVICE_URL_ATTRIB_NAME, req
      .getAssertionConsumerServiceURL());
origin: org.apache.cxf.fediz/fediz-idp-core

public SAMLAuthnRequest(AuthnRequest authnRequest) {
  super(authnRequest);
  consumerServiceURL = authnRequest.getAssertionConsumerServiceURL();
  forceAuthn = authnRequest.isForceAuthn().booleanValue();
  if (authnRequest.getSubject() != null && authnRequest.getSubject().getNameID() != null) {
    subjectNameId = authnRequest.getSubject().getNameID().getValue();
  }
}
origin: org.pac4j/pac4j-saml

protected void verifyRequest(final AuthnRequest request, final SAML2MessageContext context) {
  // Verify endpoint requested in the original request
  final AssertionConsumerService assertionConsumerService = (AssertionConsumerService) context.getSAMLEndpointContext()
    .getEndpoint();
  if (request.getAssertionConsumerServiceIndex() != null) {
    if (!request.getAssertionConsumerServiceIndex().equals(assertionConsumerService.getIndex())) {
      logger.warn("Response was received at a different endpoint index than was requested");
    }
  } else {
    final String requestedResponseURL = request.getAssertionConsumerServiceURL();
    final String requestedBinding = request.getProtocolBinding();
    if (requestedResponseURL != null) {
      final String responseLocation;
      if (assertionConsumerService.getResponseLocation() != null) {
        responseLocation = assertionConsumerService.getResponseLocation();
      } else {
        responseLocation = assertionConsumerService.getLocation();
      }
      if (!requestedResponseURL.equals(responseLocation)) {
        logger.warn("Response was received at a different endpoint URL {} than was requested {}",
          responseLocation, requestedResponseURL);
      }
    }
    if (requestedBinding != null && !requestedBinding.equals(context.getSAMLBindingContext().getBindingUri())) {
      logger.warn("Response was received using a different binding {} than was requested {}",
        context.getSAMLBindingContext().getBindingUri(), requestedBinding);
    }
  }
}
origin: net.shibboleth.idp/idp-saml-impl

log.debug("{} Populating template endpoint for resolution from SAML AuthnRequest", getLogPrefix());
endpoint.setLocation(((AuthnRequest) inboundMessage).getAssertionConsumerServiceURL());
endpoint.setBinding(((AuthnRequest) inboundMessage).getProtocolBinding());
if (endpoint instanceof IndexedEndpoint) {
origin: org.apereo.cas/cas-server-support-saml-idp-core

} else {
  acs.setBinding(authnRequest.getProtocolBinding());
  acs.setLocation(authnRequest.getAssertionConsumerServiceURL());
  acs.setResponseLocation(authnRequest.getAssertionConsumerServiceURL());
  acs.setIndex(0);
  acs.setIsDefault(Boolean.TRUE);
origin: spring-projects/spring-security-saml

.setAssertionConsumerService(
  getEndpoint(
    request.getAssertionConsumerServiceURL(),
    Binding.fromUrn(request.getProtocolBinding()),
    ofNullable(request.getAssertionConsumerServiceIndex()).orElse(-1),
org.opensaml.saml.saml2.coreAuthnRequestgetAssertionConsumerServiceURL

Javadoc

Gets the URL of the particular Assertion Consumer Service to which the response to this request should be delivered.

Popular methods of AuthnRequest

  • setNameIDPolicy
    Sets the NameIDPolicy of the request.
  • setAssertionConsumerServiceURL
    Sets the URL of the particular Assertion Consumer Service to which the response to this request shou
  • setIssueInstant
  • setIssuer
  • setProtocolBinding
    Sets the protocol binding URI for the request.
  • setDestination
  • setID
  • setRequestedAuthnContext
    Sets the RequestedAuthnContext of the request.
  • setForceAuthn
    Sets whether the IdP should force the user to reauthenticate.
  • getProtocolBinding
    Gets the protocol binding URI for the request.
  • setIsPassive
    Sets whether the IdP should refrain from interacting with the user during the authentication process
  • setVersion
  • setIsPassive,
  • setVersion,
  • getAssertionConsumerServiceIndex,
  • getNameIDPolicy,
  • getID,
  • getSubject,
  • isForceAuthn,
  • isPassive,
  • getRequestedAuthnContext

Popular in Java

  • Running tasks concurrently on multiple threads
  • getExternalFilesDir (Context)
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Runner (org.openjdk.jmh.runner)
  • Best IntelliJ plugins
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