def associate(self, params): ''' This sets up a association (encryption key) bewtween the ID Provider and the consumer ''' expires_in = ASSOC_EXPIRES_IN res = create_association(self.storage, expires_in, **params) response.status = 200 response.content_type = "text/plain" return res