Ignore:
Timestamp:
Jan 10, 2012 5:28:15 PM (12 years ago)
Author:
Ted Faber <faber@…>
Branches:
compt_changes, info-ops, master
Children:
f77a256
Parents:
d2e86f6
Message:

Deactivate legacy authorization and dynamic projects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedd/federation/access.py

    rd2e86f6 ree950c2  
    1515
    1616from util import *
    17 from allocate_project import allocate_project_local, allocate_project_remote
    1817from fedid import fedid, generate_fedid
    1918from authorizer import authorizer
     
    305304            if access_ok:
    306305                self.log.debug("Access succeeded for %s %s" % (attr.attr, fid))
    307                 # XXX: needs to deal with dynamics
    308                 return copy.copy(attr.value), (False, False, False), \
    309                         [ fid ], proof
     306                return copy.copy(attr.value), [ fid ], proof
    310307            else:
    311308                fail_proofs.append(proof)
     
    451448        return (exp, state)
    452449
    453     def build_access_response(self, alloc_id, ap, services, proof):
     450    def build_access_response(self, alloc_id, pname, services, proof):
    454451        """
    455452        Create the SOAP response.
     
    467464                'fedAttr': [
    468465                    { 'attribute': 'domain', 'value': self.domain } ,
    469                     { 'attribute': 'project', 'value':
    470                         ap['project'].get('name', {}).get('localname', "???") },
    471466                ]
    472467            }
    473468
     469        if pname:
     470            msg['fedAttr'].append({ 'attribute': 'project', 'value': pname })
    474471        if self.dragon_endpoint:
    475472            msg['fedAttr'].append({'attribute': 'dragon',
Note: See TracChangeset for help on using the changeset viewer.