Skip to content

Commit

Permalink
feat: Allow direct RDP connections
Browse files Browse the repository at this point in the history
Resolves #6
  • Loading branch information
MoritzWeber0 committed Oct 25, 2023
1 parent 3c070c5 commit ecce063
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 9 deletions.
1 change: 1 addition & 0 deletions frontend/src/app/schemes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface Session {
id: string;
last_seen: string;
type: 'persistent' | 'readonly';
rdp_host?: string;
rdp_password: string;
guacamole_username: string;
guacamole_password: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,34 @@

<div class="m-m-card">
<div class="mb-1 text-base font-bold">Connect to the session</div>
Please click on this button to connect to the server: <br />
<div class="mt-2">
<button mat-flat-button color="primary" (click)="redirectToGuacamole()">
Connect to Session
Please choose if you want to connect via the browser or via a native RDP
client to the session.
<div class="mt-2 flex gap-2">
<button mat-raised-button color="primary" (click)="redirectToGuacamole()">
Connect via browser
</button>
<button mat-raised-button color="primary" (click)="requestNativeClient()">
Connect via native client
</button>
</div>
</div>
<div *ngIf="nativeClient">
<hr />
<div class="m-m-card">
<div class="mb-1 text-base font-bold">Wait for a public route</div>
We have requested a public route to your session. <br />Once the route is
available the status will be updated here. <br />This can take up to one
minute.
</div>
<hr />
<div class="m-m-card">
<div class="mb-1 text-base font-bold">Open the native client</div>
When you click on this button, your browser will ask you to open the native
client. <br />
Please confirm the dialog. If it does not work, you can also connect
manually with the following data:
</div>
</div>
<hr />
<div class="m-m-card">
<div class="mb-1 text-base font-bold">
Expand All @@ -49,8 +70,3 @@
{{ session.version?.name }} starts automatically. This can take up to one
minute.
</div>
<div>
<button mat-stroked-button class="w-full" (click)="this.dialogRef.close()">
Close
</button>
</div>

0 comments on commit ecce063

Please sign in to comment.