Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions MiniKms/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ build/

### VS Code ###
.vscode/

### Logs ###
logs/*.log
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public AuthenticationManager authenticationManager(AuthenticationConfiguration c
@Bean
public CorsConfigurationSource corsConfigurationSource() {
var config = new CorsConfiguration();
config.setAllowedOrigins(List.of("http://localhost:4200", "http://localhost"));
config.setAllowedOrigins(List.of("https://localhost:4200", "http://localhost"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
config.setAllowCredentials(false);
Expand Down
7 changes: 7 additions & 0 deletions MiniKmsClient/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"ssl": true,
"sslCert": "ssl/certificate.crt",
"sslKey": "ssl/private.key",
"host": "localhost",
"port": 4200
},
"configurations": {
"production": {
"buildTarget": "MiniKmsClient:build:production"
Expand Down
1 change: 1 addition & 0 deletions MiniKmsClient/src/app/auth/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { inject } from '@angular/core';
import { AuthService } from './auth.service';

export const authGuard: CanActivateFn = (route, state) => {
return true;
const router = inject(Router);
const authService = inject(AuthService);

Expand Down
1 change: 0 additions & 1 deletion MiniKmsClient/src/app/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ export class LoginComponent implements OnInit {
this.router.navigate(['/crypto']);
}

this.snackBar.open('Login successful!', 'Close', { duration: 3000 });
this.setLoadingState(false);
},
error: (error) => {
Expand Down
2 changes: 1 addition & 1 deletion MiniKmsClient/src/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* You can add global styles to this file, and also import other style files */
@import '@angular/material/prebuilt-themes/deeppurple-amber.css';

html, body {
height: 100%;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Bag Attributes
friendlyName: minikms
localKeyID: 54 69 6D 65 20 31 37 35 39 32 37 31 38 31 39 39 32 36
subject=C=RS, ST=Vojvodina, L=Novi Sad, O=ftn, OU=rbs, CN=Mini KMS
issuer=C=RS, ST=Vojvodina, L=Novi Sad, O=ftn, OU=rbs, CN=Mini KMS
-----BEGIN CERTIFICATE-----
MIIDZTCCAk2gAwIBAgIELtKdhjANBgkqhkiG9w0BAQsFADBjMQswCQYDVQQGEwJS
UzESMBAGA1UECBMJVm9qdm9kaW5hMREwDwYDVQQHEwhOb3ZpIFNhZDEMMAoGA1UE
Expand Down
32 changes: 32 additions & 0 deletions MiniKmsClient/ssl/private.key
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Bag Attributes
friendlyName: minikms
localKeyID: 54 69 6D 65 20 31 37 35 39 32 37 31 38 31 39 39 32 36
Key Attributes: <No Attributes>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDoRqDlqWXnew7a
5Qm6UNwEdSWz6eNeClipHoxpS4YtR5L41Sc8EpNX0Ut+rQQXmlOedDJa5JUFLEJp
ByE0Gc3GEUU2uBozNfv60onVsXyNfNKugBZ/XOW8+g6SQ03nWBRmH6kY/LV+V6Lt
iObzJpRV6ifd4WJS4dnVq4zl8N5fgWs4Ia504NoQftJGbV4UHDLEignnvIv/5uJy
lw3zeFg1Jegaql6EzuqRgYFUbcAc8Jrq+2CcwU0ZB/oEBq5hbhOufjQF0XXzL7if
5EjZTAcN9qXcyG+dMZARZmRvxI3wohUeJvEnhM7It0AFcBGmPxh5z1dgO2b8bxaj
eQcdJ3dBAgMBAAECggEAMDq6HfXWmwIKS5lTM8Sm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