def test_authenticate_application(self):
        gi = GlobalIdentity(
            '6f3ef834-446f-48d7-9cfb-5a85a8a2576a',
            self.global_identity_server)

        response = gi.validate_application(
            '2d8299ce-ae50-4c77-bf69-c436ed7650a7',
            'testsampleencoded',
            'sample string', encrypt=False)
        self.assertTrue(response['Success'])

        response = gi.validate_application(
            '2d8299ce-ae50-4c77-bf69-c436ed7650a7',
            '3409DC43229EC9A23F429772C85A0391FD6B15BAAC1FC86F75CED63A23686C69\
D0F2F79A2CCF9F20C46642B522E1B3FAC71F7807F685A0BA47E7F8FDFC3DA6D5',
            'sample string', encrypt=False)
        self.assertTrue(response['Success'])
示例#2
0
    def test_authenticate_application(self):
        gi = GlobalIdentity('6f3ef834-446f-48d7-9cfb-5a85a8a2576a',
                            self.global_identity_server)

        response = gi.validate_application(
            '2d8299ce-ae50-4c77-bf69-c436ed7650a7',
            'testsampleencoded',
            'sample string',
            encrypt=False)
        self.assertTrue(response['Success'])

        response = gi.validate_application(
            '2d8299ce-ae50-4c77-bf69-c436ed7650a7',
            '3409DC43229EC9A23F429772C85A0391FD6B15BAAC1FC86F75CED63A23686C69\
D0F2F79A2CCF9F20C46642B522E1B3FAC71F7807F685A0BA47E7F8FDFC3DA6D5',
            'sample string',
            encrypt=False)
        self.assertTrue(response['Success'])