This repository was archived by the owner on Dec 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathstormpath.module.ts
More file actions
61 lines (60 loc) · 2.41 KB
/
stormpath.module.ts
File metadata and controls
61 lines (60 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { AuthPortComponent } from './authport/authport.component';
import { ForgotPasswordComponent } from './forgot-password/forgot-password.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
import { HttpModule, RequestOptions, Http, XHRBackend } from '@angular/http';
import { LoginService } from './stormpath/stormpath.service';
import { StormpathConfiguration } from './stormpath/stormpath.config';
import { httpFactory } from './stormpath/stormpath.http';
import { EmailVerificationComponent } from './email-verification/email-verification.component';
import { ResetPasswordComponent } from './reset-password/reset-password.component';
import { ResendEmailVerificationComponent } from './resend-email-verification/resend-email-verification.component';
import { EventManager } from './stormpath/event.manager';
import { LocalStorageTokenStoreManager, CookieTokenStoreManager } from './stormpath/token-store.manager';
import { Stormpath } from './stormpath/stormpath.service';
import { Ng2Webstorage } from 'ng2-webstorage';
import { CookieService } from 'angular2-cookie/core';
import { IfUserInGroupDirective } from './user/if-user-in-group.directive';
import { IfUserDirective } from './user/if-user.directive';
@NgModule({
declarations: [
AuthPortComponent,
ForgotPasswordComponent,
LoginComponent,
RegisterComponent,
EmailVerificationComponent,
ResetPasswordComponent,
ResendEmailVerificationComponent,
IfUserDirective,
IfUserInGroupDirective
],
imports: [CommonModule, FormsModule, HttpModule, Ng2Webstorage],
exports: [
AuthPortComponent,
ForgotPasswordComponent,
LoginComponent,
RegisterComponent,
EmailVerificationComponent,
ResetPasswordComponent,
ResendEmailVerificationComponent,
IfUserDirective,
IfUserInGroupDirective,
],
providers: [
EventManager, LocalStorageTokenStoreManager, CookieTokenStoreManager, CookieService,
Stormpath, StormpathConfiguration, LoginService,
{
provide: 'tokenStore', useClass: LocalStorageTokenStoreManager,
},
{
provide: Http,
useFactory: httpFactory,
deps: [XHRBackend, RequestOptions, StormpathConfiguration, 'tokenStore']
}
]
})
export class StormpathModule {
}