|
1 |
| -import {AuthConfig} from "angular-oauth2-oidc"; |
2 | 1 | import {Environment} from "./environment.model";
|
3 | 2 |
|
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 |
| - |
21 | 3 | export const environment: Environment = {
|
22 | 4 | production: false,
|
23 | 5 | label: "standalone",
|
24 | 6 | backendUrl: "http://localhost:8080",
|
25 |
| - authConfig, |
26 | 7 | disableBackend: true,
|
27 | 8 | customElement: true,
|
28 | 9 | };
|
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