From 9d2079ebf79f24ae3d88a99498fa24405ac1173d Mon Sep 17 00:00:00 2001 From: Mahmut Gundogdu Date: Thu, 22 Dec 2022 18:11:20 +0300 Subject: [PATCH] Add docs --- docs/en/UI/Angular/OAuth-Module.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/docs/en/UI/Angular/OAuth-Module.md b/docs/en/UI/Angular/OAuth-Module.md index a6ad2ac2d8..18b38e3e1a 100644 --- a/docs/en/UI/Angular/OAuth-Module.md +++ b/docs/en/UI/Angular/OAuth-Module.md @@ -1,5 +1,14 @@ -# ABP OAuth Packages +# ABP OAuth Package +The authentication functionality has been moved from the @abp/ng.core to the @abp/ng.ouath since v7.0. -@abp/core has the abstractions but logics moved @abp/oauth package since v7.0. +If your app is version 7.0 or higher, you should include "AbpOAuthModule.forRoot()" in your app.module.ts as an import after "CoreModule.forRoot(...)". +Those abstractions can be found in the @abp/ng-core packages. +- `AuthService` (the class that implements the IAuthService interface). +- `NAVIGATE_TO_MANAGE_PROFILE` Inject token. +- `AuthGuard` (the class that implements the IAuthGuard interface). +Those base classes are overridden by the "AbpOAuthModule" for oAuth. +If you want to make your own authentication system, you must also change these 'abstract' classes. + +ApiInterceptor is provided by @abp/ng.oauth. The ApiInterceptor adds the token, accepted-language, and tenant id to the header of the HTTP request.