-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable switching to https on login page (#2406)
* enable switching to https on login page * add trust Root CA to http login page * add node-jose back for setup wiz * add tooltips, branding, logic for launch box spinner display, and enable config to toggle https mode on mocks * cleanup * copy changes * style fixes * abstract component, fix https mocks * always show login from localhost * launch .local when on IP --------- Co-authored-by: Matt Hill <[email protected]>
- Loading branch information
Showing
25 changed files
with
511 additions
and
255 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ | |
}, | ||
"mocks": { | ||
"maskAs": "tor", | ||
"maskAsHttps": true, | ||
"skipStartupAlerts": true | ||
} | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
108 changes: 108 additions & 0 deletions
108
frontend/projects/ui/src/app/pages/login/ca-wizard/ca-wizard.component.html
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,108 @@ | ||
<ion-grid class="grid-wiz"> | ||
<img width="60px" height="60px" src="/assets/img/icon_transparent.png" /> | ||
<ion-row> | ||
<ion-col class="ion-text-center"> | ||
<ion-icon name="lock-closed-outline" class="wiz-icon"></ion-icon> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col class="ion-text-center"> | ||
<h2><b>Trust your Root Certificate Authority (CA)</b></h2> | ||
<p> | ||
Download and trust your server's Root CA to establish secure, encrypted | ||
( | ||
<b>HTTPS</b> | ||
) connections with your server | ||
</p> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col sizeXs="12" sizeLg="4"> | ||
<div class="wiz-card"> | ||
<ion-row class="ion-justify-content-between"> | ||
<b class="wiz-step">1</b> | ||
<tui-tooltip | ||
content="Your server uses its Root CA to generate SSL/TLS certificates for itself and its installed services. These certificates are used to encrypt network traffic with your client devices." | ||
direction="right" | ||
></tui-tooltip> | ||
</ion-row> | ||
<div class="ion-text-center"> | ||
<h2>Download Root CA</h2> | ||
<p>Download your server's Root CA</p> | ||
</div> | ||
<ion-button class="wiz-card-button" shape="round" (click)="download()"> | ||
<ion-icon slot="start" name="download-outline"></ion-icon> | ||
Download | ||
</ion-button> | ||
</div> | ||
</ion-col> | ||
<ion-col sizeXs="12" sizeLg="4"> | ||
<div class="wiz-card" [class.disabled]="!downloadClicked"> | ||
<ion-row class="ion-justify-content-between"> | ||
<b class="wiz-step">2</b> | ||
<tui-tooltip | ||
content="By trusting your server's Root CA, your device can verify the authenticity of its encrypted communications with your server and installed services. You will need to trust the Root CA on every device used to connect to your server." | ||
direction="right" | ||
></tui-tooltip> | ||
</ion-row> | ||
<div class="ion-text-center"> | ||
<h2>Trust Root CA</h2> | ||
<p>Follow instructions for your OS</p> | ||
</div> | ||
<ion-button | ||
class="wiz-card-button" | ||
shape="round" | ||
(click)="instructions()" | ||
[disabled]="!downloadClicked" | ||
> | ||
View Docs | ||
<ion-icon slot="end" name="open-outline"></ion-icon> | ||
</ion-button> | ||
</div> | ||
</ion-col> | ||
<ion-col sizeXs="12" sizeLg="4"> | ||
<div class="wiz-card" [class.disabled]="!polling && !caTrusted"> | ||
<b class="wiz-step">3</b> | ||
<div class="ion-text-center"> | ||
<h2>Go To Login</h2> | ||
<p *ngIf="instructionsClicked; else space" class="inline-center"> | ||
<ion-spinner | ||
class="wiz-spinner" | ||
*ngIf="!caTrusted; else trusted" | ||
></ion-spinner> | ||
<ng-template #trusted> | ||
<ion-icon name="ribbon-outline" color="success"></ion-icon> | ||
</ng-template> | ||
{{ caTrusted ? 'Root CA trusted!' : 'Waiting for trust...' }} | ||
</p> | ||
<ng-template #space> | ||
<!-- to keep alignment --> | ||
<p><br /></p> | ||
</ng-template> | ||
</div> | ||
<ion-button | ||
class="wiz-card-button" | ||
shape="round" | ||
(click)="launchHttps()" | ||
[disabled]="!caTrusted" | ||
> | ||
Open | ||
<ion-icon slot="end" name="open-outline"></ion-icon> | ||
</ion-button> | ||
</div> | ||
</ion-col> | ||
</ion-row> | ||
<ion-row> | ||
<ion-col class="ion-text-center"> | ||
<ion-button fill="clear" (click)="launchHttps()" [disabled]="caTrusted"> | ||
Skip | ||
<ion-icon slot="end" name="open-outline"></ion-icon> | ||
</ion-button> | ||
</ion-col> | ||
</ion-row> | ||
</ion-grid> | ||
<a | ||
id="install-cert" | ||
href="/public/eos/local.crt" | ||
[download]="document.location.hostname" | ||
></a> |
Oops, something went wrong.