Petals BC REST

Add support of basic authentication

Details

  • Type: Improvement Request Improvement Request
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.0.1-BC
  • Fix Version/s: 1.1.0-BC
  • Component/s: Provider mode
  • Security Level: Public
  • Description:
    Hide

    The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:

    <jbi:jbi ...>
       <jbi:services ...>
          <jbi:provides ...>
             ...
             <rest:mapping>
                ...
                <rest:operation name="ged:consulter">
                   ...
                   <rest:authentication>
                      <rest:basic>
                         <rest:username>
                            <rest:constant>petals-esb</rest:constant>
                            <!--rest:xpath>/request/username</rest:xpath-->
                         </rest:username>
                         <rest:password>
                            <!--rest:constant>${password}</rest:constant-->
                            <rest:xpath>/request/password</rest:xpath>
                         </rest:password>
                      </rest:basic>
                   <rest:authentication>
                   ...
                </rest:operation>
                ...
             </rest:mapping>
          </jbi:consumes>
       </jbi:services>
    </jbi:jbi>

    NOTE: placeholders must be supported to be able to configure user/password outside the SU !

    Show
    The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
    <jbi:jbi ...>
       <jbi:services ...>
          <jbi:provides ...>
             ...
             <rest:mapping>
                ...
                <rest:operation name="ged:consulter">
                   ...
                   <rest:authentication>
                      <rest:basic>
                         <rest:username>
                            <rest:constant>petals-esb</rest:constant>
                            <!--rest:xpath>/request/username</rest:xpath-->
                         </rest:username>
                         <rest:password>
                            <!--rest:constant>${password}</rest:constant-->
                            <rest:xpath>/request/password</rest:xpath>
                         </rest:password>
                      </rest:basic>
                   <rest:authentication>
                   ...
                </rest:operation>
                ...
             </rest:mapping>
          </jbi:consumes>
       </jbi:services>
    </jbi:jbi>
    NOTE: placeholders must be supported to be able to configure user/password outside the SU !
  • Environment:
    -

Activity

Christophe DENEUX made changes - Wed, 25 Jan 2017 - 15:39:33 +0100
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Wed, 25 Jan 2017 - 15:38:51 +0100
Description The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath-->
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>${password}</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}

Note: placeholders must be supported to be able to configure user/password outside the SU !
The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath-->
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>${password}</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}

+*NOTE*+: placeholders must be supported to be able to configure user/password outside the SU !
Christophe DENEUX made changes - Wed, 25 Jan 2017 - 15:38:11 +0100
Description The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath-->
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath-->
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>${password}</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}

Note: placeholders must be supported to be able to configure user/password outside the SU !
Christophe DENEUX made changes - Tue, 24 Jan 2017 - 16:28:17 +0100
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Tue, 24 Jan 2017 - 16:28:14 +0100
Status New [ 10000 ] Open [ 10002 ]
Christophe DENEUX made changes - Tue, 24 Jan 2017 - 11:52:48 +0100
Description The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath>
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath-->
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
Christophe DENEUX made changes - Tue, 24 Jan 2017 - 11:52:36 +0100
Description The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>request/username</rest:xpath>
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/metadatas/metadata</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>/request/username</rest:xpath>
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/request/password</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
Christophe DENEUX made changes - Tue, 24 Jan 2017 - 11:52:11 +0100
Field Original Value New Value
Fix Version/s 1.1.0 [ 10696 ]
Priority Major [ 3 ]
Description The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code}


<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>request/username</rest:xpath>
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/metadatas/metadata</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}
The BC Rest should expose resources protected with a basic authentication as service. Please add support of basic authentication, that can be configured as following:
{code:xml}
<jbi:jbi ...>
   <jbi:services ...>
      <jbi:provides ...>
         ...
         <rest:mapping>
            ...
            <rest:operation name="ged:consulter">
               ...
               <rest:authentication>
                  <rest:basic>
                     <rest:username>
                        <rest:constant>petals-esb</rest:constant>
                        <!--rest:xpath>request/username</rest:xpath>
                     </rest:username>
                     <rest:password>
                        <!--rest:constant>my-password</rest:constant-->
                        <rest:xpath>/metadatas/metadata</rest:xpath>
                     </rest:password>
                  </rest:basic>
               <rest:authentication>
               ...
            </rest:operation>
            ...
         </rest:mapping>
      </jbi:consumes>
   </jbi:services>
</jbi:jbi>
{code}

People

Dates

  • Created:
    Tue, 24 Jan 2017 - 11:51:46 +0100
    Updated:
    Wed, 25 Jan 2017 - 15:39:33 +0100
    Resolved:
    Wed, 25 Jan 2017 - 15:39:32 +0100