@ -2,6 +2,7 @@ import {
AuthService ,
AuthService ,
AuthGuard ,
AuthGuard ,
authGuard ,
authGuard ,
asyncAuthGuard ,
ApiInterceptor ,
ApiInterceptor ,
PIPE_TO_LOGIN_FN_KEY ,
PIPE_TO_LOGIN_FN_KEY ,
CHECK_AUTHENTICATION_STATE_FN_KEY ,
CHECK_AUTHENTICATION_STATE_FN_KEY ,
@ -11,7 +12,7 @@ import {
import { Provider , makeEnvironmentProviders , inject , provideAppInitializer } from '@angular/core' ;
import { Provider , makeEnvironmentProviders , inject , provideAppInitializer } from '@angular/core' ;
import { HTTP_INTERCEPTORS } from '@angular/common/http' ;
import { HTTP_INTERCEPTORS } from '@angular/common/http' ;
import { OAuthModule , OAuthStorage } from 'angular-oauth2-oidc' ;
import { OAuthModule , OAuthStorage } from 'angular-oauth2-oidc' ;
import { AbpOAuthGuard , abpOAuthGuard } from '../guards' ;
import { AbpOAuthGuard , abpOAuthGuard , asyncAbpOAuthGuard , } from '../guards' ;
import { OAuthConfigurationHandler } from '../handlers' ;
import { OAuthConfigurationHandler } from '../handlers' ;
import { OAuthApiInterceptor } from '../interceptors' ;
import { OAuthApiInterceptor } from '../interceptors' ;
import { AbpOAuthService , OAuthErrorFilterService } from '../services' ;
import { AbpOAuthService , OAuthErrorFilterService } from '../services' ;
@ -32,6 +33,10 @@ export function provideAbpOAuth() {
provide : authGuard ,
provide : authGuard ,
useValue : abpOAuthGuard ,
useValue : abpOAuthGuard ,
} ,
} ,
{
provide : asyncAuthGuard ,
useValue : asyncAbpOAuthGuard ,
} ,
{
{
provide : ApiInterceptor ,
provide : ApiInterceptor ,
useClass : OAuthApiInterceptor ,
useClass : OAuthApiInterceptor ,