|
|
|
@ -4,6 +4,7 @@ import { OAuthModule, OAuthStorage } from 'angular-oauth2-oidc'; |
|
|
|
import { |
|
|
|
AbpLocalStorageService, |
|
|
|
ApiInterceptor, |
|
|
|
AuthGuard, |
|
|
|
authGuard, |
|
|
|
AuthService, |
|
|
|
CHECK_AUTHENTICATION_STATE_FN_KEY, |
|
|
|
@ -14,7 +15,7 @@ import { AbpOAuthService } from './services'; |
|
|
|
import { OAuthConfigurationHandler } from './handlers/oauth-configuration.handler'; |
|
|
|
import { HTTP_INTERCEPTORS } from '@angular/common/http'; |
|
|
|
import { OAuthApiInterceptor } from './interceptors/api.interceptor'; |
|
|
|
import { abpOAuthGuard } from './guards/oauth.guard'; |
|
|
|
import { AbpOAuthGuard, abpOAuthGuard } from './guards/oauth.guard'; |
|
|
|
import { NavigateToManageProfileProvider } from './providers'; |
|
|
|
import { checkAccessToken, pipeToLogin } from './utils'; |
|
|
|
|
|
|
|
@ -30,6 +31,10 @@ export class AbpOAuthModule { |
|
|
|
provide: AuthService, |
|
|
|
useClass: AbpOAuthService, |
|
|
|
}, |
|
|
|
{ |
|
|
|
provide: AuthGuard, |
|
|
|
useClass: AbpOAuthGuard, |
|
|
|
}, |
|
|
|
{ |
|
|
|
provide: authGuard, |
|
|
|
useValue: abpOAuthGuard, |
|
|
|
|