Announcement

Collapse
No announcement yet.

SecurityToken holen, Bipro

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SecurityToken holen, Bipro

    Hallo,
    ich habe versucht mich mit der Thematik SoapClient vertraut zu machen, da ich eine Anbindung zur Abfrage programmieren muss.
    Ich habe dafür folgende Dateien erhalten:
    wsdl (auf Server)
    wsdl für den SecurityToken, und 2 xsd dateien
    Das ganze dient der Abfrage zum Zweck eines Vergleichs.

    Es handelt sich um BiPRo.

    Die erste Frage ist wie kann ich den SecurityToken erhalten?
    Code der Datei dafür:
    sts.wsdl
    Code:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    
    <wsdl:definitions name="sts" targetNamespace="http://www.dieURL.net/namespace" 
    xmlns:bipro="http://www.dieURL.net/namespace" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy" 
    xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/" 
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" 
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" 
    xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512" 
    xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy">
    
    	<wsp:Policy wsu:Id="BiPROAuthSecurityPolicy">
    		<wsp:ExactlyOne>
    			<wsp:All>
    				<sp:TransportBinding>
    					<wsp:Policy>
    						<sp:TransportToken>
    							<wsp:Policy>
    								<sp:HttpsToken sp:RequireClientCertificate="false"/>
    							</wsp:Policy>
    						</sp:TransportToken>
    						<sp:AlgorithmSuite>
    							<wsp:Policy>
    								<sp:Basic256/>
    							</wsp:Policy>
    						</sp:AlgorithmSuite>
    						<sp:Layout>
    							<wsp:Policy>
    								<sp:Lax/>
    							</wsp:Policy>
    						</sp:Layout>
    					</wsp:Policy>
    				</sp:TransportBinding>
    				<sp:SupportingTokens>
    					<wsp:Policy>
    						<sp:SecureConversationToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient">
    							<sp:Issuer>
    								<!-- Achtung: In Produktion ist hier etwas anzugeben! -->
    								<wsa:Address></wsa:Address>
    							</sp:Issuer>
    						</sp:SecureConversationToken>
    					</wsp:Policy>
    				</sp:SupportingTokens>
    			</wsp:All>
    		</wsp:ExactlyOne>
    	</wsp:Policy>
    
    
    
    
      <wsdl:types>
        <xsd:schema version="1.0" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <xsd:import namespace="http://schemas.xmlsoap.org/ws/2005/02/trust" schemaLocation="http://schemas.xmlsoap.org/ws/2005/02/trust/WS-Trust.xsd" />
        </xsd:schema>
    
        <xsd:schema version="1.0" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <xsd:import namespace="http://schemas.xmlsoap.org/ws/2004/09/policy" schemaLocation="http://schemas.xmlsoap.org/ws/2004/09/policy/ws-policy.xsd" />
        </xsd:schema>
    
      </wsdl:types>
      
      <wsdl:message name="RequestSecurityTokenRequest">
        <wsdl:part name="parameters" element="wst:RequestSecurityToken" />
      </wsdl:message>
      <wsdl:message name="RequestSecurityTokenResponse">
        <wsdl:part name="parameters" element="wst:RequestSecurityTokenResponse" />
      </wsdl:message>
    
      
      <wsdl:portType name="SecurityTokenServicePortType">
        <wsdl:operation name="RequestSecurityToken" parameterOrder="parameters">
          <wsdl:documentation>Fordert ein SecurityToken an.</wsdl:documentation>
          <wsdl:input message="bipro:RequestSecurityTokenRequest" name="RequestSecurityTokenRequest" />
          <wsdl:output message="bipro:RequestSecurityTokenResponse" name="RequestSecurityTokenResponse" />
        
        </wsdl:operation>
      </wsdl:portType>
      
      <wsdl:binding name="SecurityTokenServiceBinding" type="bipro:SecurityTokenServicePortType">
        <soapbind:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
        <wsp:PolicyReference URI="#BiPROAuthSecurityPolicy" />
        <wsdl:operation name="RequestSecurityToken">
          <soapbind:operation soapAction="urn:RequestSecurityToken" style="document" />
          <wsdl:input name="RequestSecurityTokenRequest">
            <soapbind:body use="literal" />
          </wsdl:input>
    
          <wsdl:output name="RequestSecurityTokenResponse">
            <soapbind:body use="literal" />
          </wsdl:output>
    
        </wsdl:operation>
        
      
      </wsdl:binding>
      
      <wsdl:service name='stsService'>
        <wsdl:documentation>Dieser Service stellt Methoden zur Verfuegung, um nach erfolgreicher Authentifizierung einen Security-Token zu erhalten.</wsdl:documentation>
        
        <wsdl:port name="UserPasswordLogin" binding="bipro:SecurityTokenServiceBinding">
          <wsdl:documentation>Stellt ein Login mit Username/Password zur Verfuegung</wsdl:documentation>
          <soapbind:address location="https://url.de####LinkURL###" />
        </wsdl:port>
      </wsdl:service>
      
      
    </wsdl:definitions>
    Dazu besitze ich Passwort und Username
    Wie realisiere ich nun den SecurityToken?
    Kann mir jemand weiter helfen?

  • #2
    SecurityToken BiPRo

    Hallo Silvia,

    hast Du eine Lösung gefunden für Dein Problem?

    Gruß
    Lomeco

    Comment


    • #3
      STS nach Bipro (SecurityToken Service)

      Moin!

      Auch wenn dieser thread etwas älter ist, das Problem der Implementierung eines STS-Clients nach Bipro ist noch sehr aktuell.

      Kennt jemand den Weg, wie man die entsprechenden Methoden anzusprechen hat, um einen ST zu bekommen?

      Comment

      Working...
      X