Skip to content

Commit

Permalink
update DependencyInjection.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
junioranheu authored Jan 10, 2025
1 parent 4058f06 commit 7df5f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Auth.Infrastructure/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ private static void AddServices(IServiceCollection services, WebApplicationBuild
services.Configure<JwtSettings>(builder.Configuration.GetSection(JwtSettings.SectionName));
}

private static readonly string[] onChallengeError = ["Acesso negado. Você não tem autorização para acessar este recurso."];
private static readonly string[] onChallengeError = ["Acesso negado. Você não tem autorização para acessar este recurso porque não tem permissão ou não está autenticado."];

private static void AddAuth(IServiceCollection services, WebApplicationBuilder builder)
{
Expand Down Expand Up @@ -145,4 +145,4 @@ private static void AddCors(IServiceCollection services, WebApplicationBuilder b
})
);
}
}
}

0 comments on commit 7df5f5e

Please sign in to comment.