mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-22 14:13:36 -07:00
feat: add warnings to header auth toggles
This commit is contained in:
parent
28c6129545
commit
6fe1757ef5
2 changed files with 14 additions and 1 deletions
|
@ -23,6 +23,9 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<mat-slide-toggle id="enableHeaderAuth" name="enableHeaderAuth" formControlName="enableHeaderAuth">Enable Authentication with Header Variable</mat-slide-toggle>
|
<mat-slide-toggle id="enableHeaderAuth" name="enableHeaderAuth" formControlName="enableHeaderAuth">Enable Authentication with Header Variable</mat-slide-toggle>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="alert warning-box">
|
||||||
|
Enabling Header Authentication will allow anyone to bypass authentication unless you are using a properly configured reverse proxy. Use with caution!
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group" *ngIf="form.controls.enableHeaderAuth.value">
|
<div class="form-group" *ngIf="form.controls.enableHeaderAuth.value">
|
||||||
|
@ -36,6 +39,9 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<mat-slide-toggle id="headerAuthCreateUser" name="headerAuthCreateUser" formControlName="headerAuthCreateUser">SSO creates new users automatically</mat-slide-toggle>
|
<mat-slide-toggle id="headerAuthCreateUser" name="headerAuthCreateUser" formControlName="headerAuthCreateUser">SSO creates new users automatically</mat-slide-toggle>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="alert warning-box" *ngIf="form.controls.headerAuthCreateUser.value">
|
||||||
|
If the user in the Header Authentication variable does not exist, a new user will be created. You can configure the default permissions for new users in the <a target="_blank" href="/Settings/UserManagement">User Management settings</a>.
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,3 +13,10 @@
|
||||||
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
|
box-shadow: 0 5px 11px 0 rgba(255, 255, 255, 0.18), 0 4px 15px 0 rgba(255, 255, 255, 0.15);
|
||||||
color: inherit;
|
color: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.warning-box {
|
||||||
|
margin: 16px 0;
|
||||||
|
color: white;
|
||||||
|
background-color: $ombi-background-accent;
|
||||||
|
border-color: $warn;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue