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
1 parent
5017d71
commit 007e953
Showing
33 changed files
with
159 additions
and
88 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions
16
server-spi/src/main/java/org/keycloak/services/managers/BruteForceProtector.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
package org.keycloak.services.managers; | |||
|
|||
import org.keycloak.common.ClientConnection; | |||
import org.keycloak.models.KeycloakSession; | |||
import org.keycloak.models.RealmModel; | |||
import org.keycloak.provider.Provider; | |||
|
|||
/** | |||
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> | |||
* @version $Revision: 1 $ | |||
*/ | |||
public interface BruteForceProtector extends Provider { | |||
void failedLogin(RealmModel realm, String username, ClientConnection clientConnection); | |||
|
|||
boolean isTemporarilyDisabled(KeycloakSession session, RealmModel realm, String username); | |||
} |
10 changes: 10 additions & 0 deletions
10
server-spi/src/main/java/org/keycloak/services/managers/BruteForceProtectorFactory.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,10 @@ | |||
package org.keycloak.services.managers; | |||
|
|||
import org.keycloak.provider.ProviderFactory; | |||
|
|||
/** | |||
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> | |||
* @version $Revision: 1 $ | |||
*/ | |||
public interface BruteForceProtectorFactory extends ProviderFactory<BruteForceProtector> { | |||
} |
34 changes: 34 additions & 0 deletions
34
server-spi/src/main/java/org/keycloak/services/managers/BruteForceProtectorSpi.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,34 @@ | |||
package org.keycloak.services.managers; | |||
|
|||
import org.keycloak.models.UserFederationProvider; | |||
import org.keycloak.models.UserFederationProviderFactory; | |||
import org.keycloak.provider.Provider; | |||
import org.keycloak.provider.ProviderFactory; | |||
import org.keycloak.provider.Spi; | |||
|
|||
/** | |||
* @author <a href="mailto:sthorger@redhat.com">Stian Thorgersen</a> | |||
*/ | |||
public class BruteForceProtectorSpi implements Spi { | |||
|
|||
@Override | |||
public boolean isInternal() { | |||
return true; | |||
} | |||
|
|||
@Override | |||
public String getName() { | |||
return "bruteForceProtector"; | |||
} | |||
|
|||
@Override | |||
public Class<? extends Provider> getProviderClass() { | |||
return BruteForceProtector.class; | |||
} | |||
|
|||
@Override | |||
public Class<? extends ProviderFactory> getProviderFactoryClass() { | |||
return BruteForceProtectorFactory.class; | |||
} | |||
|
|||
} |
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
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
Oops, something went wrong.