mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[ACS-6071] fix JSDoc issues for Core lib (#8942)
* fix jsdoc issues * docs fixes * doc fixes * doc fixes * fix docs * fix bugs
This commit is contained in:
@@ -19,6 +19,14 @@ import { AppConfigService, AppConfigValues } from './app-config.service';
|
||||
import { StorageService } from '../common/services/storage.service';
|
||||
import { AdfHttpClient } from '@alfresco/adf-core/api';
|
||||
|
||||
/**
|
||||
* Create a factory to load app configuration
|
||||
*
|
||||
* @param appConfigService app config service
|
||||
* @param storageService storage service
|
||||
* @param adfHttpClient http client
|
||||
* @returns factory function
|
||||
*/
|
||||
export function loadAppConfig(appConfigService: AppConfigService, storageService: StorageService, adfHttpClient: AdfHttpClient) {
|
||||
return () => appConfigService.load().then(() => {
|
||||
adfHttpClient.disableCsrf = appConfigService.get<boolean>(AppConfigValues.DISABLECSRF, true);
|
||||
|
@@ -215,6 +215,7 @@ export class AppConfigService {
|
||||
/**
|
||||
* Call the discovery API to fetch configuration
|
||||
*
|
||||
* @param hostIdp host address
|
||||
* @returns Discovery configuration
|
||||
*/
|
||||
loadWellKnown(hostIdp: string): Promise<OpenidConfiguration> {
|
||||
@@ -234,6 +235,8 @@ export class AppConfigService {
|
||||
|
||||
/**
|
||||
* OAuth2 configuration
|
||||
*
|
||||
* @returns auth config model
|
||||
*/
|
||||
get oauth2(): OauthConfigModel {
|
||||
const config = this.get(AppConfigValues.OAUTHCONFIG, {});
|
||||
|
Reference in New Issue
Block a user