Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit c804671

Browse files
committed
DefaultOktaSigningKeyResolver must have a InternalDataStore constructor to be loaded by client.instantiate
1 parent 4aac8fa commit c804671

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

extensions/spring/stormpath-spring-webmvc/src/main/java/com/stormpath/spring/config/AbstractStormpathWebMvcConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
import com.stormpath.sdk.cache.Cache;
2323
import com.stormpath.sdk.client.Client;
2424
import com.stormpath.sdk.idsite.IdSiteResultListener;
25-
import com.stormpath.sdk.impl.application.okta.DefaultOktaSigningKeyResolver;
25+
import com.stormpath.sdk.impl.application.okta.OktaSigningKeyResolver;
2626
import com.stormpath.sdk.lang.Assert;
2727
import com.stormpath.sdk.lang.BiPredicate;
2828
import com.stormpath.sdk.lang.Collections;
@@ -809,7 +809,7 @@ public String stormpathCsrfTokenSigningKey() {
809809

810810
public JwtAccountResolver stormpathJwtAccountResolver() {
811811
if (oktaEnabled) {
812-
return new OktaJwtAccountResolver(new DefaultOktaSigningKeyResolver(client.getDataStore()));
812+
return new OktaJwtAccountResolver(client.instantiate(OktaSigningKeyResolver.class));
813813
}
814814
else {
815815
return new DefaultJwtAccountResolver(stormpathJwtSigningKeyResolver());

impl/src/main/java/com/stormpath/sdk/impl/application/okta/DefaultOktaSigningKeyResolver.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
public class DefaultOktaSigningKeyResolver implements OktaSigningKeyResolver {
2525

2626

27-
private final DataStore dataStore;
27+
private final InternalDataStore dataStore;
2828

29-
public DefaultOktaSigningKeyResolver(DataStore dataStore) {
29+
public DefaultOktaSigningKeyResolver(InternalDataStore dataStore) {
3030
this.dataStore = dataStore;
3131
}
3232

0 commit comments

Comments
 (0)