neo-appsdk-login
v0.0.10
Published
AppModuleconfiguration ======================= import { NeoAppsdkLoginModule } from 'neo-appsdk-login'; import { TokenInterceptor } from 'neo-appsdk-login'; import { AuthGuard } from 'neo-appsdk-login'; import { InitConfigService } from 'neo-appsdk-l
Downloads
2
Readme
AppModuleconfiguration
import { NeoAppsdkLoginModule } from 'neo-appsdk-login'; import { TokenInterceptor } from 'neo-appsdk-login'; import { AuthGuard } from 'neo-appsdk-login'; import { InitConfigService } from 'neo-appsdk-login'; import { NeoAppsdkLoginModule } from 'neo-appsdk-login';
const envData = { config_read_api_url: '', application_id: '', config_fetch_env: '', project: { name: '', description: '' }, pool_id: '', client_id: '', region: '', neo_idm_url: '', api_read_v1: '', api_soft_read_v1: '', api_soft_create_v1: '', api_soft_update_v1: '', api_soft_delete_v1: '', resourcename_roles: '', resourcename_users: '', resourcename_data_lists_collection: '', api_soft_read_authorize_v1: '', after_login_land_url: '' };
========================================================== imports: [ RouterModule.forRoot(appRoute), BrowserModule, HttpClientModule, NeoAppsdkLoginModule.forRoot(envData) ],
========================================================== providers: [ AuthGuard, InitConfigService, { provide: APP_INITIALIZER, useFactory: (config: InitConfigService) => () => config.load(), deps: [InitConfigService], multi: true }, { provide: HTTP_INTERCEPTORS, useClass: TokenInterceptor, multi: true }, ],
==========================================================
npm install bootstrap --save npm install --save aws-amplify mpm install --save [email protected] npm install devextreme
======================================================== User RouterModule, HttpClientModule, Open Your page where you want to giv login
Known Bug aws-sdk
Uncaught ReferenceError: global is not defined at Object../node_modules/buffer/index.js (index.js:43) at webpack_require (bootstrap:78) at Object../node_modules/aws-sdk/lib/browserHashUtils.js (browserHashUtils.js:1) at webpack_require (bootstrap:78) at Object../node_modules/aws-sdk/lib/browserHmac.js (browserHmac.js:1) at webpack_require (bootstrap:78) at Object../node_modules/aws-sdk/lib/browserCryptoLib.js (browserCryptoLib.js:1) at webpack_require (bootstrap:78) at Object../node_modules/aws-sdk/lib/browser_loader.js (browser_loader.js:4) at webpack_require (bootstrap:78)
(window as any).global = window; to /src/polyfills.ts and
open tsconfig.json Paste if types is not avialble "types": ["node"]