This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
692 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
src/main/java/ee/ria/sso/flow/action/MobileIDCheckCancelAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ee.ria.sso.flow.action; | ||
|
||
import ee.ria.sso.authentication.AuthenticationType; | ||
import ee.ria.sso.service.mobileid.MobileIDAuthenticationService; | ||
import ee.ria.sso.service.smartid.SmartIDAuthenticationService; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.webflow.execution.Event; | ||
import org.springframework.webflow.execution.RequestContext; | ||
|
||
@ConditionalOnProperty("mobile-id.enabled") | ||
@Component | ||
public class MobileIDCheckCancelAction extends AbstractAuthenticationAction { | ||
|
||
private final MobileIDAuthenticationService authenticationService; | ||
|
||
public MobileIDCheckCancelAction(MobileIDAuthenticationService authenticationService) { | ||
this.authenticationService = authenticationService; | ||
} | ||
|
||
@Override | ||
protected Event doAuthenticationExecute(RequestContext requestContext) { | ||
return authenticationService.cancelAuthenticationSessionStatusChecking(requestContext); | ||
} | ||
|
||
@Override | ||
protected AuthenticationType getAuthenticationType() { | ||
return AuthenticationType.MobileID; | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/ee/ria/sso/flow/action/SmartIDCheckCancelAction.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package ee.ria.sso.flow.action; | ||
|
||
import ee.ria.sso.authentication.AuthenticationType; | ||
import ee.ria.sso.service.smartid.SmartIDAuthenticationService; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
import org.springframework.stereotype.Component; | ||
import org.springframework.webflow.execution.Event; | ||
import org.springframework.webflow.execution.RequestContext; | ||
|
||
@ConditionalOnProperty("smart-id.enabled") | ||
@Component | ||
public class SmartIDCheckCancelAction extends AbstractAuthenticationAction { | ||
|
||
private final SmartIDAuthenticationService authenticationService; | ||
|
||
public SmartIDCheckCancelAction(SmartIDAuthenticationService authenticationService) { | ||
this.authenticationService = authenticationService; | ||
} | ||
|
||
@Override | ||
protected Event doAuthenticationExecute(RequestContext requestContext) { | ||
return authenticationService.cancelCheckSmartIdAuthenticationSessionStatus(requestContext); | ||
} | ||
|
||
@Override | ||
protected AuthenticationType getAuthenticationType() { | ||
return AuthenticationType.SmartID; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
src/main/java/ee/ria/sso/service/mobileid/soap/MobileIDAuthenticatorWrapper.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.