[CORL-761] stream-side account tab for sso (#2834)

* move download comments to my comments tab

* only show download comments if available

* move ignored users management to same tab as notifications, rename to preferences

* fix query and ts defs

* add url to jwt

* make account tab go to external url if provided

* ensure url is an optional jwt field

* update tabs for stream profile

* update classnames for tabs

* fix tests
This commit is contained in:
Tessa Thornton
2020-02-19 14:39:58 -05:00
committed by GitHub
parent e42c2b925d
commit 4b637a2dd5
35 changed files with 459 additions and 576 deletions
+2 -1
View File
@@ -30,11 +30,12 @@ export function getSSOProfile(user: Pick<User, "profiles">) {
export function needsSSOUpdate(
token: SSOUserProfile,
user: Pick<User, "email" | "username" | "badges" | "role">
user: Pick<User, "email" | "username" | "badges" | "role" | "ssoURL">
) {
return (
user.email !== token.email ||
user.username !== token.username ||
(user.ssoURL && user.ssoURL !== token.url) ||
(token.role && user.role !== token.role) ||
!isEqual(user.badges, token.badges)
);
+6
View File
@@ -392,6 +392,11 @@ export interface User extends TenantResource {
*/
badges?: string[];
/**
* ssoURL is the url where a user can manage their sso account
*/
ssoURL?: string;
/**
* emailVerificationID is used to store state regarding the verification state
* of an email address to prevent replay attacks.
@@ -485,6 +490,7 @@ export interface FindOrCreateUserInput {
avatar?: string;
email?: string;
badges?: string[];
ssoURL?: string;
emailVerified?: boolean;
role: GQLUSER_ROLE;
profile: Profile;