def setup_session(self, areq, authn_event, cinfo):
        try:
            oidc_req = areq["request"]
        except __HOLE__:
            oidc_req = None

        sid = self.sdb.create_authz_session(authn_event, areq, oidreq=oidc_req)
        kwargs = {}
        for param in ["sector_id", "subject_type"]:
            try:
                kwargs[param] = cinfo[param]
            except KeyError:
                pass

        self.sdb.do_sub(sid, cinfo['client_salt'], **kwargs)
        return sid
dataset/ETHPy150Open rohe/pyoidc/src/oic/oic/provider.py/Provider.setup_session