Skip to content

feat: add github device flow for authentication #8232

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jun 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix friendly message appearance
  • Loading branch information
kylecarbs committed Jun 28, 2023
commit bdbb1db1963f5af7d525c8e353310fdf1a28c96e
12 changes: 4 additions & 8 deletions site/src/pages/GitAuthPage/GitAuthPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,7 @@ const GitAuthPageView: FC<GitAuthPageViewProps> = ({
let installTheApp: JSX.Element = <>{`install the ${gitAuth.type} App`}</>
if (gitAuth.app_install_url) {
installTheApp = (
<Link
href={gitAuth.app_install_url}
target="_blank"
rel="noreferrer"
className={styles.link}
>
<Link href={gitAuth.app_install_url} target="_blank" rel="noreferrer">
{installTheApp}
</Link>
)
Expand All @@ -81,8 +76,9 @@ const GitAuthPageView: FC<GitAuthPageViewProps> = ({
<SignInLayout>
<Welcome message={`You've authenticated with ${gitAuth.type}!`} />
<p className={styles.text}>
Hey @{gitAuth.user?.login} 👋! You are now authenticated with Git. Feel
free to close this window!
Hey @{gitAuth.user?.login} 👋!{" "}
{(!gitAuth.app_installable || gitAuth.installations.length > 0) &&
"You are now authenticated with Git. Feel free to close this window!"}
</p>

{gitAuth.installations.length > 0 && (
Expand Down