src/scitokens/scitokens.py
def generate_acls(self, token):
        """
        Given a SciToken object and the expected issuer, return the valid ACLs.
        """
        self._reset_state()

        critical_claims = set(["scope"])
        # Check for the older "scp" attribute
        if 'scope' not in token and 'scp' in token:
            critical_claims = set(["scp"])

        try:
            self._validator.validate(token, critical_claims=critical_claims)
        except ValidationFailure as verify_fail:
            self.last_failure = str(verify_fail)
            raise
        return list(self._token_scopes)

        Given a SciToken object and the expected issuer, return the valid ACLs.
        
Given a SciToken object and the expected issuer, return the valid ACLs.
Given a SciToken object and the expected issuer return the valid ACLs .
def generate_acls(self, token):
        self._reset_state()
        critical_claims = set(["scope"])
        if 'scope' not in token and 'scp' in token:
            critical_claims = set(["scp"])
        try:
            self._validator.validate(token, critical_claims=critical_claims)
        except ValidationFailure as verify_fail:
            self.last_failure = str(verify_fail)
            raise
        return list(self._token_scopes)
def generate_acls ( self , token ) : self . _reset_state ( ) critical_claims = set ( [ "scope" ] ) if 'scope' not in token and 'scp' in token : critical_claims = set ( [ "scp" ] ) try : self . _validator . validate ( token , critical_claims = critical_claims ) except ValidationFailure as verify_fail : self . last_failure = str ( verify_fail ) raise return list ( self . _token_scopes )
Given a SciToken object and the expected issuer, return the valid ACLs.
Given a SciToken object and the expected issuer return the valid ACLs .
"""
        Given a SciToken object and the expected issuer, return the valid ACLs.
        """ # Check for the older "scp" attribute
self
token