Skip to content

Commit 156d7f1

Browse files
committed
Make AuthConfig optional
1 parent a966785 commit 156d7f1

File tree

2 files changed

+1
-29
lines changed

2 files changed

+1
-29
lines changed

src/environments/environment.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export interface Environment {
44
production: boolean;
55
label: string;
66
backendUrl: string;
7-
authConfig: AuthConfig;
7+
authConfig?: AuthConfig;
88
disableBackend: boolean;
99
customElement: boolean;
1010
}
Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,9 @@
1-
import {AuthConfig} from "angular-oauth2-oidc";
21
import {Environment} from "./environment.model";
32

4-
// This file can be replaced during build by using the `fileReplacements` array.
5-
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
6-
// The list of file replacements can be found in `angular.json`.
7-
8-
const authConfig: AuthConfig = {
9-
issuer: "http://localhost:8081/realms/netzgrafikeditor",
10-
// The ClientId you received from the IAM Team
11-
clientId: "netzgrafikeditor",
12-
// For production with Angular i18n the language code needs to be included in the redirectUri.
13-
// In your environment.prod.ts (or similar, but not your environment.ts) replace it with the following line:
14-
// redirectUri: location.origin + location.pathname.substring(0, location.pathname.indexOf('/', 1) + 1)
15-
// Note that these URIs must also be added to allowed redirect URIs in Azure (e.g. https://your-domain/en/, https://your-domain/de/, ...)
16-
redirectUri: location.origin,
17-
responseType: "code",
18-
scope: "openid profile email offline_access",
19-
};
20-
213
export const environment: Environment = {
224
production: false,
235
label: "standalone",
246
backendUrl: "http://localhost:8080",
25-
authConfig,
267
disableBackend: true,
278
customElement: true,
289
};
29-
30-
/*
31-
* For easier debugging in development mode, you can import the following file
32-
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
33-
*
34-
* This import should be commented out in production mode because it will have a negative impact
35-
* on performance if an error is thrown.
36-
*/
37-
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.

0 commit comments

Comments
 (0)