Implement OIDC authentication

This commit is contained in:
adityachandelgit
2025-05-14 14:58:20 -06:00
committed by Aditya Chandel
parent 548e09ae2c
commit 817b572c08
60 changed files with 1642 additions and 247 deletions
@@ -10,6 +10,7 @@
<p-table [value]="users" class="mt-4">
<ng-template pTemplate="header">
<tr>
<th>Provisioning</th>
<th>Username</th>
<th>Full Name</th>
<th>Email</th>
@@ -26,6 +27,9 @@
<ng-template pTemplate="body" let-user>
<tr>
<td>
{{ (user.provisioningMethod || 'LOCAL') | lowercase | titlecase }}
</td>
<td>{{ user.username }}</td>
<td>
<input *ngIf="user.isEditing" type="text" [(ngModel)]="user.name" class="p-inputtext w-full"/>
@@ -4,7 +4,7 @@ import {Button} from 'primeng/button';
import {DialogService, DynamicDialogRef} from 'primeng/dynamicdialog';
import {CreateUserDialogComponent} from './create-user-dialog/create-user-dialog.component';
import {TableModule} from 'primeng/table';
import {NgIf, NgStyle} from '@angular/common';
import {LowerCasePipe, NgIf, NgStyle, TitleCasePipe} from '@angular/common';
import {User, UserService} from './user.service';
import {MessageService} from 'primeng/api';
import {Checkbox} from 'primeng/checkbox';
@@ -25,7 +25,9 @@ import {Password} from 'primeng/password';
NgStyle,
MultiSelect,
Dialog,
Password
Password,
LowerCasePipe,
TitleCasePipe
],
templateUrl: './user-management.component.html',
styleUrls: ['./user-management.component.scss'],
@@ -21,6 +21,7 @@ export interface User {
canManipulateLibrary: boolean;
};
bookPreferences: UserBookPreferences;
provisioningMethod?: 'LOCAL' | 'OIDC' | 'REMOTE';
}
export interface UserBookPreferences {