mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-19 17:55:17 -04:00
refactor(auth): rename identity-module to auth-module
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
ff3e34261e
commit
b24f8b0a76
46 changed files with 78 additions and 81 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { AliasCreateDto } from '../../../notes/alias-create.dto';
|
||||
import { AliasUpdateDto } from '../../../notes/alias-update.dto';
|
||||
|
|
|
@ -15,14 +15,11 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { IdentityService } from '../../../identity/identity.service';
|
||||
import { OidcService } from '../../../identity/oidc/oidc.service';
|
||||
import { PendingUserConfirmationDto } from '../../../identity/pending-user-confirmation.dto';
|
||||
import { ProviderType } from '../../../identity/provider-type.enum';
|
||||
import {
|
||||
RequestWithSession,
|
||||
SessionGuard,
|
||||
} from '../../../identity/session.guard';
|
||||
import { IdentityService } from '../../../auth/identity.service';
|
||||
import { OidcService } from '../../../auth/oidc/oidc.service';
|
||||
import { PendingUserConfirmationDto } from '../../../auth/pending-user-confirmation.dto';
|
||||
import { ProviderType } from '../../../auth/provider-type.enum';
|
||||
import { RequestWithSession, SessionGuard } from '../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { FullUserInfoDto } from '../../../users/user-info.dto';
|
||||
import { OpenApi } from '../../utils/openapi.decorator';
|
||||
|
|
|
@ -13,12 +13,12 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { IdentityService } from '../../../../auth/identity.service';
|
||||
import { LdapLoginDto } from '../../../../auth/ldap/ldap-login.dto';
|
||||
import { LdapService } from '../../../../auth/ldap/ldap.service';
|
||||
import { ProviderType } from '../../../../auth/provider-type.enum';
|
||||
import { RequestWithSession } from '../../../../auth/session.guard';
|
||||
import { NotInDBError } from '../../../../errors/errors';
|
||||
import { IdentityService } from '../../../../identity/identity.service';
|
||||
import { LdapLoginDto } from '../../../../identity/ldap/ldap-login.dto';
|
||||
import { LdapService } from '../../../../identity/ldap/ldap.service';
|
||||
import { ProviderType } from '../../../../identity/provider-type.enum';
|
||||
import { RequestWithSession } from '../../../../identity/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../../logger/console-logger.service';
|
||||
import { UsersService } from '../../../../users/users.service';
|
||||
import { makeUsernameLowercase } from '../../../../utils/username';
|
||||
|
|
|
@ -14,15 +14,15 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { LocalService } from '../../../../identity/local/local.service';
|
||||
import { LoginDto } from '../../../../identity/local/login.dto';
|
||||
import { RegisterDto } from '../../../../identity/local/register.dto';
|
||||
import { UpdatePasswordDto } from '../../../../identity/local/update-password.dto';
|
||||
import { ProviderType } from '../../../../identity/provider-type.enum';
|
||||
import { LocalService } from '../../../../auth/local/local.service';
|
||||
import { LoginDto } from '../../../../auth/local/login.dto';
|
||||
import { RegisterDto } from '../../../../auth/local/register.dto';
|
||||
import { UpdatePasswordDto } from '../../../../auth/local/update-password.dto';
|
||||
import { ProviderType } from '../../../../auth/provider-type.enum';
|
||||
import {
|
||||
RequestWithSession,
|
||||
SessionGuard,
|
||||
} from '../../../../identity/session.guard';
|
||||
} from '../../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../../logger/console-logger.service';
|
||||
import { User } from '../../../../users/user.entity';
|
||||
import { UsersService } from '../../../../users/users.service';
|
||||
|
|
|
@ -15,10 +15,10 @@ import {
|
|||
import { HttpException } from '@nestjs/common/exceptions/http.exception';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { IdentityService } from '../../../../identity/identity.service';
|
||||
import { OidcService } from '../../../../identity/oidc/oidc.service';
|
||||
import { ProviderType } from '../../../../identity/provider-type.enum';
|
||||
import { RequestWithSession } from '../../../../identity/session.guard';
|
||||
import { IdentityService } from '../../../../auth/identity.service';
|
||||
import { OidcService } from '../../../../auth/oidc/oidc.service';
|
||||
import { ProviderType } from '../../../../auth/provider-type.enum';
|
||||
import { RequestWithSession } from '../../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../../logger/console-logger.service';
|
||||
import { UsersService } from '../../../../users/users.service';
|
||||
import { OpenApi } from '../../../utils/openapi.decorator';
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
import { Controller, Get, Param, UseGuards } from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { GroupInfoDto } from '../../../groups/group-info.dto';
|
||||
import { GroupsService } from '../../../groups/groups.service';
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { OpenApi } from '../../utils/openapi.decorator';
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -15,11 +15,11 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { SessionGuard } from '../../../../auth/session.guard';
|
||||
import { HistoryEntryImportListDto } from '../../../../history/history-entry-import.dto';
|
||||
import { HistoryEntryUpdateDto } from '../../../../history/history-entry-update.dto';
|
||||
import { HistoryEntryDto } from '../../../../history/history-entry.dto';
|
||||
import { HistoryService } from '../../../../history/history.service';
|
||||
import { SessionGuard } from '../../../../identity/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../../logger/console-logger.service';
|
||||
import { Note } from '../../../../notes/note.entity';
|
||||
import { User } from '../../../../users/user.entity';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import { Body, Controller, Delete, Get, Post, UseGuards } from '@nestjs/common';
|
||||
import { ApiBody, ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { MediaUploadDto } from '../../../media/media-upload.dto';
|
||||
import { MediaService } from '../../../media/media.service';
|
||||
|
|
|
@ -19,8 +19,8 @@ import { FileInterceptor } from '@nestjs/platform-express';
|
|||
import { ApiBody, ApiConsumes, ApiHeader, ApiTags } from '@nestjs/swagger';
|
||||
import { Response } from 'express';
|
||||
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { PermissionError } from '../../../errors/errors';
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { MediaUploadDto } from '../../../media/media-upload.dto';
|
||||
import { MediaService } from '../../../media/media.service';
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2023 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -17,10 +17,10 @@ import {
|
|||
} from '@nestjs/common';
|
||||
import { ApiTags } from '@nestjs/swagger';
|
||||
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { NotInDBError } from '../../../errors/errors';
|
||||
import { GroupsService } from '../../../groups/groups.service';
|
||||
import { HistoryService } from '../../../history/history.service';
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { MediaUploadDto } from '../../../media/media-upload.dto';
|
||||
import { MediaService } from '../../../media/media.service';
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
import { Module } from '@nestjs/common';
|
||||
|
||||
import { ApiTokenModule } from '../../api-token/api-token.module';
|
||||
import { AuthModule } from '../../auth/auth.module';
|
||||
import { FrontendConfigModule } from '../../frontend-config/frontend-config.module';
|
||||
import { GroupsModule } from '../../groups/groups.module';
|
||||
import { HistoryModule } from '../../history/history.module';
|
||||
import { IdentityModule } from '../../identity/identity.module';
|
||||
import { LoggerModule } from '../../logger/logger.module';
|
||||
import { MediaModule } from '../../media/media.module';
|
||||
import { NotesModule } from '../../notes/notes.module';
|
||||
|
@ -41,7 +41,7 @@ import { UsersController } from './users/users.controller';
|
|||
NotesModule,
|
||||
MediaModule,
|
||||
RevisionsModule,
|
||||
IdentityModule,
|
||||
AuthModule,
|
||||
GroupsModule,
|
||||
],
|
||||
controllers: [
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -21,7 +21,7 @@ import {
|
|||
ApiTokenWithSecretDto,
|
||||
} from '../../../api-token/api-token.dto';
|
||||
import { ApiTokenService } from '../../../api-token/api-token.service';
|
||||
import { SessionGuard } from '../../../identity/session.guard';
|
||||
import { SessionGuard } from '../../../auth/session.guard';
|
||||
import { ConsoleLoggerService } from '../../../logger/console-logger.service';
|
||||
import { User } from '../../../users/user.entity';
|
||||
import { OpenApi } from '../../utils/openapi.decorator';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue