Skip to content
Snippets Groups Projects
Commit 71bd56b6 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Add test for sso redirect

parent 3d8f8686
No related branches found
No related tags found
No related merge requests found
......@@ -126,6 +126,14 @@ TEST(ClientAPI, LoginFlows)
mtx_client->close();
}
TEST(ClientAPI, SSORedirect)
{
std::shared_ptr<Client> mtx_client = std::make_shared<Client>("localhost");
EXPECT_EQ(mtx_client->login_sso_redirect("http://aaa:555/sso"),
"https://localhost:443/_matrix/client/r0/login/sso/"
"redirect?redirectUrl=http%3A%2F%2Faaa%3A555%2Fsso");
}
TEST(ClientAPI, EmptyUserAvatar)
{
auto alice = std::make_shared<Client>("localhost");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment