-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix username not shown for OIDC users (#4324)
Fix - email not shown on the user details page even when it's provided by the OIDC provider
- Loading branch information
1 parent
2a377e9
commit 447c5e9
Showing
8 changed files
with
91 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React, { FC, useContext } from "react"; | ||
import {UserHeader} from "../../../../lib/components/auth/nav"; | ||
import { GetUserEmailByIdContext } from "../index"; | ||
|
||
export interface UserHeaderWithContextProps { | ||
userId: string; | ||
page: string; | ||
} | ||
|
||
export const UserHeaderWithContext: FC<UserHeaderWithContextProps> = ({ userId, page }) => { | ||
const getUserEmailById = useContext(GetUserEmailByIdContext); | ||
const email = getUserEmailById(userId); | ||
return ( | ||
<UserHeader userId={userId} userEmail={email} page={page} /> | ||
); | ||
}; |