Home
last modified time | relevance | path

Searched refs:user_info (Results 1 – 17 of 17) sorted by relevance

/external/libweave/src/privet/
Dprivet_handler.h83 const UserInfo& user_info,
86 const UserInfo& user_info,
89 const UserInfo& user_info,
92 const UserInfo& user_info,
95 const UserInfo& user_info,
98 const UserInfo& user_info,
101 const UserInfo& user_info,
104 const UserInfo& user_info,
107 const UserInfo& user_info,
110 const UserInfo& user_info,
[all …]
Dcloud_delegate.cc165 const UserInfo& user_info, in AddCommand() argument
167 CHECK(user_info.scope() != AuthScope::kNone); in AddCommand()
168 CHECK(!user_info.id().IsEmpty()); in AddCommand()
172 std::string str_scope = EnumToString(user_info.scope()); in AddCommand()
185 command_owners_[id] = user_info.id(); in AddCommand()
190 const UserInfo& user_info, in GetCommand() argument
192 CHECK(user_info.scope() != AuthScope::kNone); in GetCommand()
194 auto command = GetCommandInternal(id, user_info, &error); in GetCommand()
201 const UserInfo& user_info, in CancelCommand() argument
203 CHECK(user_info.scope() != AuthScope::kNone); in CancelCommand()
[all …]
Dauth_manager_unittest.cc35 const UserInfo& user_info) const { in DelegateToUser()
36 return auth_.DelegateToUser(token, ttl, user_info); in DelegateToUser()
170 UserInfo user_info; in TEST_F() local
171 EXPECT_FALSE(auth_.ParseAccessToken(token, &user_info, nullptr)); in TEST_F()
172 EXPECT_TRUE(auth.ParseAccessToken(token, &user_info, nullptr)); in TEST_F()
173 EXPECT_EQ(AuthScope::kUser, user_info.scope()); in TEST_F()
174 EXPECT_EQ(TestUserId{"5"}, user_info.id()); in TEST_F()
178 EXPECT_TRUE(auth.ParseAccessToken(token, &user_info, nullptr)); in TEST_F()
183 EXPECT_FALSE(auth.ParseAccessToken(extended, &user_info, nullptr)); in TEST_F()
188 EXPECT_FALSE(auth.ParseAccessToken(token, &user_info, nullptr)); in TEST_F()
[all …]
Dprivet_handler.cc491 UserInfo user_info; in HandleRequest() local
493 if (!security_->ParseAccessToken(token, &user_info, &error)) in HandleRequest()
497 if (handler->second.scope > user_info.scope()) { in HandleRequest()
500 EnumToString(user_info.scope()).c_str(), api.c_str()); in HandleRequest()
503 (this->*handler->second.handler)(*input, user_info, callback); in HandleRequest()
527 const UserInfo& user_info, in HandleInfo() argument
572 const UserInfo& user_info, in HandlePairingStart() argument
614 const UserInfo& user_info, in HandlePairingConfirm() argument
637 const UserInfo& user_info, in HandlePairingCancel() argument
651 const UserInfo& user_info, in HandleAuth() argument
[all …]
Dcloud_delegate.h116 const UserInfo& user_info,
121 const UserInfo& user_info,
126 const UserInfo& user_info,
130 virtual void ListCommands(const UserInfo& user_info,
Dauth_manager.cc322 std::vector<uint8_t> AuthManager::CreateAccessToken(const UserInfo& user_info, in CreateAccessToken() argument
326 ScopeCaveat scope{ToMacaroonScope(user_info.scope())}; in CreateAccessToken()
329 std::vector<uint8_t> id_with_type{user_info.id().user}; in CreateAccessToken()
330 id_with_type.push_back(static_cast<uint8_t>(user_info.id().type)); in CreateAccessToken()
332 AppIdCaveat app{user_info.id().app}; in CreateAccessToken()
344 UserInfo* user_info, in ParseAccessToken() argument
381 if (user_info) in ParseAccessToken()
382 *user_info = UserInfo{auth_scope, UserAppId{type, user_id, app_id}}; in ParseAccessToken()
550 const UserInfo& user_info) const { in DelegateToUser()
558 ScopeCaveat scope{ToMacaroonScope(user_info.scope())}; in DelegateToUser()
[all …]
Dauth_manager.h38 std::vector<uint8_t> CreateAccessToken(const UserInfo& user_info,
42 UserInfo* user_info,
80 const UserInfo& user_info) const;
Dsecurity_manager.cc95 UserInfo user_info{ in CreateAccessTokenImpl() local
103 *access_token = auth_manager_->CreateAccessToken(user_info, kTtl); in CreateAccessTokenImpl()
106 *access_token_scope = user_info.scope(); in CreateAccessTokenImpl()
185 UserInfo* user_info, in ParseAccessToken() argument
194 return auth_manager_->ParseAccessToken(decoded, user_info, error); in ParseAccessToken()
Dsecurity_delegate.h35 UserInfo* user_info,
Dsecurity_manager.h70 UserInfo* user_info,
/external/autotest/client/site_tests/security_EnableChromeTesting/
Dsecurity_EnableChromeTesting.py15 user_info = pwd.getpwnam(username)
16 os.setegid(user_info[3])
17 os.seteuid(user_info[2])
/external/autotest/cli/
Dtopic_common_unittest.py514 user_info = topic_common.item_parse_info(attribute_name='users',
518 (options, leftover) = self.atest.parse([host_info, user_info])
552 user_info = topic_common.item_parse_info(attribute_name='users',
555 (options, leftover) = self.atest.parse([host_info, user_info])
590 user_info = topic_common.item_parse_info(attribute_name='users',
593 (options, leftover) = self.atest.parse([host_info, user_info])
626 user_info = topic_common.item_parse_info(attribute_name='users',
629 (options, leftover) = self.atest.parse([host_info, user_info])
658 user_info = topic_common.item_parse_info(attribute_name='users',
660 (options, leftover) = self.atest.parse([host_info, user_info])
[all …]
Dacl.py74 user_info = topic_common.item_parse_info(attribute_name='users',
79 (options, leftover) = super(acl_list, self).parse([user_info,
200 user_info = topic_common.item_parse_info(attribute_name='users',
207 self).parse([user_info, host_info],
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/scripts/
Doauth2l_test.py273 user_info = {'email': 'foo@example.com'}
275 return_value=user_info,
278 self.assertEqual(user_info['email'], output)
292 user_info = {'email': 'foo@example.com'}
294 return_value=user_info,
297 self.assertEqual(json.dumps(user_info, indent=4), output)
303 user_info = {'email': 'foo@example.com'}
305 return_value=user_info,
309 self.assertEqual(json.dumps(user_info, separators=(',', ':')),
/external/chromium-trace/catapult/dashboard/dashboard/
Drequest_handler.py56 user_info = ''
74 user_info = '<a href="%s" title="%s">%s</a>' % (
78 template_values['user_info'] = user_info
/external/libchrome/base/mac/
Dfoundation_util.mm459 base::ScopedCFTypeRef<CFDictionaryRef> user_info(CFErrorCopyUserInfo(err));
461 if (user_info.get()) {
463 CFDictionaryGetValue(user_info.get(), kCFErrorDescriptionKey));
/external/v8/src/
Dobjects.cc12710 Handle<PrototypeInfo> user_info = in UnregisterPrototypeUser() local
12712 int slot = user_info->registry_slot(); in UnregisterPrototypeUser()