Browse Source

feat: change the oauth configuration according to code flow

pull/4995/head
mehmet-erim 6 years ago
parent
commit
e049d02ef4
  1. 11
      npm/ng-packs/apps/dev-app/src/environments/environment.prod.ts
  2. 11
      npm/ng-packs/apps/dev-app/src/environments/environment.ts
  3. 14
      templates/app/angular/src/environments/environment.prod.ts
  4. 15
      templates/app/angular/src/environments/environment.ts

11
npm/ng-packs/apps/dev-app/src/environments/environment.prod.ts

@ -1,20 +1,21 @@
import { Config } from '@abp/ng.core';
const baseUrl = 'http://localhost:4200';
export const environment = {
production: true,
hmr: false,
application: {
baseUrl: 'http://localhost:4200/',
baseUrl,
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
oidc: false,
requireHttps: true,
responseType: 'code',
scope: 'offline_access MyProjectName',
},
apis: {
default: {

11
npm/ng-packs/apps/dev-app/src/environments/environment.ts

@ -1,20 +1,21 @@
import { Config } from '@abp/ng.core';
const baseUrl = 'http://localhost:4200';
export const environment = {
production: false,
hmr: false,
application: {
baseUrl: 'http://localhost:4200/',
baseUrl,
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
oidc: false,
requireHttps: true,
responseType: 'code',
scope: 'offline_access MyProjectName',
},
apis: {
default: {

14
templates/app/angular/src/environments/environment.prod.ts

@ -1,26 +1,24 @@
import { Config } from '@abp/ng.core';
const baseUrl = 'http://localhost:4200';
export const environment = {
production: true,
application: {
baseUrl: 'http://localhost:4200/',
baseUrl,
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
oidc: false,
requireHttps: true,
responseType: 'code',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44305',
},
},
localization: {
defaultResourceName: 'MyProjectName',
},
} as Config.Environment;

15
templates/app/angular/src/environments/environment.ts

@ -1,27 +1,24 @@
import { Config } from '@abp/ng.core';
const baseUrl = 'http://localhost:4200';
export const environment = {
production: false,
application: {
baseUrl: 'http://localhost:4200/',
baseUrl,
name: 'MyProjectName',
logoUrl: '',
},
oAuthConfig: {
issuer: 'https://localhost:44305',
redirectUri: baseUrl,
clientId: 'MyProjectName_App',
dummyClientSecret: '1q2w3e*',
scope: 'MyProjectName',
showDebugInformation: true,
oidc: false,
requireHttps: true,
responseType: 'code',
scope: 'offline_access MyProjectName',
},
apis: {
default: {
url: 'https://localhost:44305',
},
},
localization: {
defaultResourceName: 'MyProjectName',
},
} as Config.Environment;

Loading…
Cancel
Save