Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/main/java/uk/ac/ox/ctl/ltiauth/CustomLti13Configurer.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import uk.ac.ox.ctl.lti13.security.oauth2.client.lti.web.OptimisticAuthorizationRequestRepository;
import uk.ac.ox.ctl.lti13.security.oauth2.client.lti.web.PathOIDCInitiationRegistrationResolver;

import java.time.Duration;

/**
* This overrides the standard configurer to add our token passing redirect along with allowing client
* registration lookups by client ID instead of requiring a custom path (although that's still supported).
Expand All @@ -27,14 +25,6 @@ public CustomLti13Configurer(JWTService jwtService, ClientRegistrationService cl
this.clientRegistrationService = clientRegistrationService;
}

@Override
protected OptimisticAuthorizationRequestRepository configureRequestRepository() {
MultiStateCacheAuthorizationRequestRepository repository =
new MultiStateCacheAuthorizationRequestRepository(Duration.ofMinutes(1), 2);
repository.setLimitIpAddress(limitIpAddresses);
return new StatelessOptimisticAuthorizationRequestRepository(repository);
}

@Override
protected OAuth2LoginAuthenticationFilter configureLoginFilter(ClientRegistrationRepository clientRegistrationRepository, OidcLaunchFlowAuthenticationProvider oidcLaunchFlowAuthenticationProvider, OptimisticAuthorizationRequestRepository authorizationRequestRepository) {
OAuth2LoginAuthenticationFilter loginFilter = super.configureLoginFilter(clientRegistrationRepository, oidcLaunchFlowAuthenticationProvider, authorizationRequestRepository);
Expand Down

This file was deleted.

This file was deleted.

25 changes: 0 additions & 25 deletions src/main/java/uk/ac/ox/ctl/ltiauth/TomcatConfiguration.java

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,5 @@ management.endpoints.web.exposure.include=health,sentry
# disable by default
spring.cloud.aws.secretsmanager.enabled=false

# This is needed for the OAuth flow so that the cookie is sent in cross-origin requests.
server.servlet.session.cookie.same-site=None

This file was deleted.

Loading