-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
login recovery implementation - archetype selection module (WIP)
- Loading branch information
Showing
21 changed files
with
371 additions
and
96 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
File renamed without changes.
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
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
33 changes: 33 additions & 0 deletions
33
...com/evolveum/midpoint/authentication/impl/channel/LoginRecoveryAuthenticationChannel.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,33 @@ | ||
/* | ||
* Copyright (c) 2010-2023 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.authentication.impl.channel; | ||
|
||
import com.evolveum.midpoint.schema.constants.SchemaConstants; | ||
import com.evolveum.midpoint.security.api.Authorization; | ||
import com.evolveum.midpoint.security.api.AuthorizationConstants; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AuthenticationSequenceChannelType; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AuthorizationType; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
|
||
public class LoginRecoveryAuthenticationChannel extends AuthenticationChannelImpl { | ||
|
||
public LoginRecoveryAuthenticationChannel(AuthenticationSequenceChannelType channel) { | ||
super(channel); | ||
} | ||
|
||
public String getChannelId() { | ||
return SchemaConstants.CHANNEL_LOGIN_RECOVERY_URI; | ||
} | ||
|
||
public String getPathAfterSuccessfulAuthentication() { | ||
return "/loginRecovery"; | ||
} | ||
|
||
|
||
} |
34 changes: 34 additions & 0 deletions
34
...om/evolveum/midpoint/authentication/impl/factory/channel/LoginRecoveryChannelFactory.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,34 @@ | ||
/* | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.authentication.impl.factory.channel; | ||
|
||
import com.evolveum.midpoint.authentication.api.AuthenticationChannel; | ||
import com.evolveum.midpoint.authentication.impl.channel.LoginRecoveryAuthenticationChannel; | ||
import com.evolveum.midpoint.authentication.impl.channel.SelfRegistrationAuthenticationChannel; | ||
import com.evolveum.midpoint.schema.constants.SchemaConstants; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.AuthenticationSequenceChannelType; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class LoginRecoveryChannelFactory extends AbstractChannelFactory { | ||
|
||
@Override | ||
public boolean match(String channelId) { | ||
return SchemaConstants.CHANNEL_LOGIN_RECOVERY_URI.equals(channelId); | ||
} | ||
|
||
@Override | ||
public AuthenticationChannel createAuthChannel(AuthenticationSequenceChannelType channel) { | ||
return new LoginRecoveryAuthenticationChannel(channel); | ||
} | ||
|
||
@Override | ||
protected Integer getOrder() { | ||
return 10; | ||
} | ||
} |
Oops, something went wrong.