From ea2e0ac14bd5f188368b8bc41d9be67d21db6686 Mon Sep 17 00:00:00 2001 From: masumulu28 Date: Thu, 15 Feb 2024 15:01:07 +0300 Subject: [PATCH] Format Authorization.md file --- docs/en/UI/Angular/Authorization.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/en/UI/Angular/Authorization.md b/docs/en/UI/Angular/Authorization.md index 2e4a9af343..5fad925c9d 100644 --- a/docs/en/UI/Angular/Authorization.md +++ b/docs/en/UI/Angular/Authorization.md @@ -59,9 +59,9 @@ The `AuthErrorFilterService` is an abstract service that needs to be replaced wi > By default, this service is replaced in the `@abp/ng.oauth` package -**Usage** +### Usage -1.Create an auth-filter.provider +#### 1.Create an auth-filter.provider ```js import { APP_INITIALIZER, inject } from '@angular/core'; @@ -96,12 +96,11 @@ function configureAuthFilter() { ``` - `AuthErrorFilter:` is a model for filter object and it have 3 properties - - `id:` a unique key in the list for the filter object - `executable:` a status for the filter object. If it's false then it won't work, yet it'll stay in the list - `execute:` a function that stores the skip logic - 2.Add to the FeatureConfigModule +#### 2.Add to the FeatureConfigModule ```js import { ModuleWithProviders, NgModule } from "@angular/core"; @@ -120,11 +119,11 @@ export class CustomersConfigModule { Now it'll skip the clearing of OAuth storage keys for `LinkedUser` grant_type if any `OAuthErrorEvent` occurs -**Replace with custom implementation** +#### Replace with custom implementation -- Use the `AbstractAuthErrorFilter` class for signs of process. +Use the `AbstractAuthErrorFilter` class for signs of process. -**Example** +#### Example `my-auth-error-filter.service.ts`