Changeset 4186


Ignore:
Timestamp:
12/13/13 14:10:02 (10 years ago)
Author:
mwindhouwer
Message:

The AS check_token request now uses POST, and throws an exception when a non-200 code was returned

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cats/ISOcat/trunk/mod-ISOcat-control-access/control/shib-check_token.acc

    r4039 r4186  
    77        </param>
    88        <idoc>
    9                 <instr>
    10                         <type>log</type>
    11                         <operand>var:token</operand>
    12                 </instr>
     9                <accessor-debug>
     10                        <instr>
     11                                <type>log</type>
     12                                <operand>var:token</operand>
     13                        </instr>
     14                </accessor-debug>
    1315                <instr>
    1416                        <type>sloot.xquery</type>
     
    3840                        <target>var:cred</target>
    3941                </instr>
    40                 <instr>
    41                         <type>log</type>
    42                         <operand>var:cred</operand>
    43                 </instr>
     42                <accessor-debug>
     43                        <instr>
     44                                <type>log</type>
     45                                <operand>var:cred</operand>
     46                        </instr>
     47                </accessor-debug>
    4448                <instr>
    4549                        <type>new</type>
     
    4852                        <target>var:state</target>
    4953                </instr>
    50                 <instr>
    51                         <type>log</type>
    52                         <operand>var:state</operand>
    53                 </instr>
     54                <accessor-debug>
     55                        <instr>
     56                                <type>log</type>
     57                                <operand>var:state</operand>
     58                        </instr>
     59                </accessor-debug>
    5460                <instr>
    5561                        <type>sloot.xquery</type>
    5662                        <operator>
    57                                 <uri>{string($props//token)}?access_token={string($token)}&amp;scope=read</uri>
     63                                <uri>{replace(string($props//token),'.*@','https://')}</uri>
    5864                        </operator>
    5965                        <props>active:ISOcat.manage.system.properties</props>
     
    6167                        <target>var:url</target>
    6268                </instr>
    63                 <instr>
    64                         <type>log</type>
    65                         <operand>var:url</operand>
    66                 </instr>
    67                 <instr>
    68                         <type>httpGet</type>
    69                         <url>curi:var:url</url>
    70                         <state>var:state</state>
    71                         <target>var:res</target>
    72                 </instr>
    73                 <!--<instr>
    74                         <type>sloot.xquery</type>
    75                         <operator>
    76                                 <uri>{string($props//token)}</uri>
    77                         </operator>
    78                         <props>active:ISOcat.manage.system.properties</props>
    79                         <token>var:token</token>
    80                         <target>var:url</target>
    81                 </instr>
    82                 <instr>
    83                         <type>log</type>
    84                         <operand>var:url</operand>
    85                 </instr>
     69                <accessor-debug>
     70                        <instr>
     71                                <type>log</type>
     72                                <operand>var:url</operand>
     73                        </instr>
     74                </accessor-debug>
    8675                <instr>
    8776                        <type>sloot.xquery</type>
     
    9584                        <target>var:nvp</target>
    9685                </instr>
    97                 <instr>
    98                         <type>log</type>
    99                         <operand>var:nvp</operand>
    100                 </instr>
     86                <accessor-debug>
     87                        <instr>
     88                                <type>log</type>
     89                                <operand>var:nvp</operand>
     90                        </instr>
     91                </accessor-debug>
    10192                <instr>
    10293                        <type>httpPost</type>
     
    10596                        <nvp>var:nvp</nvp>
    10697                        <target>var:res</target>
    107                 </instr>-->
     98                </instr>
    10899                <instr>
    109                         <type>log</type>
     100                        <type>httpResponseCodeFilter</type>
    110101                        <operand>var:res</operand>
     102                        <target>var:res</target>
    111103                </instr>
     104                <accessor-debug>
     105                        <instr>
     106                                <type>log</type>
     107                                <operand>var:res</operand>
     108                        </instr>
     109                </accessor-debug>
    112110                <instr>
    113111                        <type>StringToCanonicalString</type>
     
    133131                        <target>var:res</target>
    134132                </instr>
    135                 <instr>
    136                         <type>log</type>
    137                         <operand>var:res</operand>
    138                 </instr>
     133                <accessor-debug>
     134                        <instr>
     135                                <type>log</type>
     136                                <operand>var:res</operand>
     137                        </instr>
     138                </accessor-debug>
    139139                <instr>
    140140                        <type>sloot.xquery</type>
Note: See TracChangeset for help on using the changeset viewer.