mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
chore: auth unit tests (#13207)
This commit is contained in:
parent
0f3b8b67fe
commit
9d9bf1c88d
2 changed files with 53 additions and 5 deletions
|
|
@ -192,10 +192,6 @@ export class AuthService extends BaseService {
|
|||
|
||||
async authorize(dto: OAuthConfigDto): Promise<OAuthAuthorizeResponseDto> {
|
||||
const config = await this.getConfig({ withCache: false });
|
||||
if (!config.oauth.enabled) {
|
||||
throw new BadRequestException('OAuth is not enabled');
|
||||
}
|
||||
|
||||
const client = await this.getOAuthClient(config);
|
||||
const url = client.authorizationUrl({
|
||||
redirect_uri: this.normalize(config, dto.redirectUri),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue