Skip to content

Commit

Permalink
chore: remove user id claim from property and make elixir_id default …
Browse files Browse the repository at this point in the history
…instead
  • Loading branch information
brunopacheco1 committed Aug 22, 2024
1 parent 673dba1 commit 7af7e69
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public ApplicationCommandApiImpl(
SubmitApplicationService submitApplicationService,
AttachFileToApplicationService attachFileToApplicationService,
AcceptTermsService acceptTermsService,
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim") String userIdClaim
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim", defaultValue = "elixir_id") String userIdClaim
) {
this.identity = identity;
this.saveApplicationService = saveApplicationService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public ApplicationQueryApiImpl(
SecurityIdentity identity,
ListApplicationsService listApplicationsService,
RetrieveApplicationService retrieveApplicationService,
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim") String userIdClaim
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim", defaultValue = "elixir_id") String userIdClaim
) {
this.identity = identity;
this.listApplicationsService = listApplicationsService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class EntitlementQueryApiImpl implements EntitlementQueryApi {
public EntitlementQueryApiImpl(
SecurityIdentity identity,
RetrieveGrantedDatasetIdentifiersService retrieveGrantedDatasetIdentifiersService,
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim") String userIdClaim
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim", defaultValue = "elixir_id") String userIdClaim
) {
this.identity = identity;
this.retrieveGrantedDatasetIdentifiersService = retrieveGrantedDatasetIdentifiersService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class PostAuthenticationFilter implements ContainerRequestFilter {
public PostAuthenticationFilter(
SecurityIdentity identity,
CreateRemsUserService createRemsUserService,
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim") String userIdClaim
@ConfigProperty(name = "quarkus.rest-client.rems_yaml.user-id-claim", defaultValue = "elixir_id") String userIdClaim
) {
this.identity = identity;
this.createRemsUserService = createRemsUserService;
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ quarkus.openapi-generator.codegen.spec.rems_yaml.generate-part-filename=false
quarkus.rest-client.rems_yaml.api-key=42
quarkus.rest-client.rems_yaml.bot-user=owner
quarkus.rest-client.rems_yaml.url=http://localhost:4000
quarkus.rest-client.rems_yaml.user-id-claim=elixir_id
quarkus.keycloak.devservices.realm-path=quarkus-realm.json
quarkus.keycloak.devservices.port=32794
quarkus.wiremock.devservices.port=4000
Expand Down

0 comments on commit 7af7e69

Please sign in to comment.