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

Hide
Christophe DENEUX added a comment - Wed, 25 Jan 2017 - 15:39:33 +0100

Basic authentication added in trunk

Show
Christophe DENEUX added a comment - Wed, 25 Jan 2017 - 15:39:33 +0100 Basic authentication added in trunk

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