-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: correct spi implementation (#1)
- Loading branch information
1 parent
1f376df
commit 57c8644
Showing
6 changed files
with
52 additions
and
15 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
30 changes: 30 additions & 0 deletions
30
...in/java/com/github/maxime1907/keycloak/actions/token/ActionsTokenResourceProviderSPI.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 com.github.maxime1907.keycloak.actions.token; | ||
|
||
import org.keycloak.provider.Provider; | ||
import org.keycloak.provider.ProviderFactory; | ||
import org.keycloak.services.resource.RealmResourceProvider; | ||
import org.keycloak.services.resource.RealmResourceProviderFactory; | ||
import org.keycloak.services.resource.RealmResourceSPI; | ||
|
||
public class ActionsTokenResourceProviderSPI extends RealmResourceSPI { | ||
|
||
@Override | ||
public boolean isInternal() { | ||
return false; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "Action Token Provider"; | ||
} | ||
|
||
@Override | ||
public Class<? extends Provider> getProviderClass() { | ||
return RealmResourceProvider.class; | ||
} | ||
|
||
@Override | ||
public Class<? extends ProviderFactory> getProviderFactoryClass() { | ||
return RealmResourceProviderFactory.class; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/resources/META-INF/services/jboss-deployment-structure.xml
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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<jboss-deployment-structure> | ||
<deployment> | ||
<dependencies> | ||
<module name="org.keycloak.keycloak-server-spi" /> | ||
<module name="org.keycloak.keycloak-server-spi-private" /> | ||
<module name="org.keycloak.keycloak-services" /> | ||
</dependencies> | ||
</deployment> | ||
</jboss-deployment-structure> |
1 change: 1 addition & 0 deletions
1
src/main/resources/META-INF/services/org.keycloak.services.resource.RealmResourceSPI
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 @@ | ||
com.github.maxime1907.keycloak.actions.token.ActionsTokenResourceProviderSPI |