feat: Add hosted domain hint when signing in through Google SSO from subdomain (#2458)
* feat: Add hosted domain hint when signing in through Google SSO from subdomain closes #2454
This commit is contained in:
@ -56,7 +56,7 @@ describe("#auth.config", () => {
|
||||
it("should return available providers for team subdomain", async () => {
|
||||
process.env.URL = "http://localoutline.com";
|
||||
|
||||
await buildTeam({
|
||||
const team = await buildTeam({
|
||||
guestSignin: false,
|
||||
subdomain: "example",
|
||||
authenticationProviders: [
|
||||
@ -74,6 +74,9 @@ describe("#auth.config", () => {
|
||||
expect(res.status).toEqual(200);
|
||||
expect(body.data.providers.length).toBe(1);
|
||||
expect(body.data.providers[0].name).toBe("Slack");
|
||||
expect(body.data.providers[0].authUrl).toContain(
|
||||
`?authProviderId=${team.authenticationProviders[0].id}`
|
||||
);
|
||||
});
|
||||
|
||||
it("should return available providers for team custom domain", async () => {
|
||||
|
Reference in New Issue
Block a user