Lines Matching refs:auth
53 AuthManager auth{{}, {}, {}, &clock_}; in TEST_F() local
54 EXPECT_EQ(auth.GetAuthSecret().size(), 32u); in TEST_F()
55 EXPECT_EQ(auth.GetAccessSecret().size(), 32u); in TEST_F()
59 AuthManager auth{kSecret2, {}, kSecret1}; in TEST_F() local
60 EXPECT_EQ(auth.GetAuthSecret().size(), 32u); in TEST_F()
61 EXPECT_EQ(auth.GetAccessSecret().size(), 32u); in TEST_F()
62 EXPECT_NE(auth_.GetAccessSecret(), auth.GetAccessSecret()); in TEST_F()
63 EXPECT_NE(auth_.GetAuthSecret(), auth.GetAuthSecret()); in TEST_F()
165 AuthManager auth{{}, {}, {}, &clock_}; in TEST_F() local
168 auth.CreateAccessToken(UserInfo{AuthScope::kUser, TestUserId{"5"}}, in TEST_F()
172 EXPECT_TRUE(auth.ParseAccessToken(token, &user_info, nullptr)); 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()
213 AuthManager auth{kSecret2, {}, kSecret1, &clock_}; in TEST_F() local
216 Base64Encode(auth.GetRootClientAuthToken(RootClientTokenOwner::kClient))); in TEST_F()
224 AuthManager auth{{}, {}, {}, &clock_}; in TEST_F() local
226 auto token = auth.GetRootClientAuthToken(RootClientTokenOwner::kClient); in TEST_F()
228 EXPECT_TRUE(auth.IsValidAuthToken(token, nullptr)); in TEST_F()