Skip to content

Commit

Permalink
[Gepardec/mega#735] Disable auth (revert later)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ollitod committed Sep 20, 2024
1 parent 8afd6b1 commit f3b4f34
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions src/main/java/com/gepardec/mega/rest/api/MailResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@
import java.time.LocalDateTime;

@Path("/mail")
@Tenant("mega-cron")
//@Tenant("mega-cron")
@Tag(name = "MailResource")
@Produces(MediaType.APPLICATION_JSON)
@SecurityRequirement(name = "mega-cron")
@SecuritySchemes(
@SecurityScheme(
securitySchemeName = "mega-cron",
type = SecuritySchemeType.OAUTH2,
flows = @OAuthFlows(clientCredentials = @OAuthFlow())
)
)
//@SecurityRequirement(name = "mega-cron")
//@SecuritySchemes(
// @SecurityScheme(
// securitySchemeName = "mega-cron",
// type = SecuritySchemeType.OAUTH2,
// flows = @OAuthFlows(clientCredentials = @OAuthFlow())
// )
//)
public interface MailResource {

@Operation(operationId = "send-reminder", description = "Sends reminder emails to affected employees.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import java.time.LocalDateTime;

@RequestScoped
@RolesAllowed("mega-cron:mail")
//@RolesAllowed("mega-cron:mail")
public class MailResourceImpl implements MailResource {

@Inject
Expand Down

0 comments on commit f3b4f34

Please sign in to comment.