forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1cbe5c4
commit 64de96d
Showing
16 changed files
with
461 additions
and
18 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
core/src/main/java/org/keycloak/representations/info/ClientInstallationRepresentation.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,71 @@ | ||
package org.keycloak.representations.info; | ||
|
||
/** | ||
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> | ||
* @version $Revision: 1 $ | ||
*/ | ||
public class ClientInstallationRepresentation { | ||
protected String id; | ||
protected String protocol; | ||
protected boolean downloadOnly; | ||
protected String displayType; | ||
protected String helpText; | ||
protected String filename; | ||
protected String mediaType; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getProtocol() { | ||
return protocol; | ||
} | ||
|
||
public void setProtocol(String protocol) { | ||
this.protocol = protocol; | ||
} | ||
|
||
public boolean isDownloadOnly() { | ||
return downloadOnly; | ||
} | ||
|
||
public void setDownloadOnly(boolean downloadOnly) { | ||
this.downloadOnly = downloadOnly; | ||
} | ||
|
||
public String getDisplayType() { | ||
return displayType; | ||
} | ||
|
||
public void setDisplayType(String displayType) { | ||
this.displayType = displayType; | ||
} | ||
|
||
public String getHelpText() { | ||
return helpText; | ||
} | ||
|
||
public void setHelpText(String helpText) { | ||
this.helpText = helpText; | ||
} | ||
|
||
public String getFilename() { | ||
return filename; | ||
} | ||
|
||
public void setFilename(String filename) { | ||
this.filename = filename; | ||
} | ||
|
||
public String getMediaType() { | ||
return mediaType; | ||
} | ||
|
||
public void setMediaType(String mediaType) { | ||
this.mediaType = mediaType; | ||
} | ||
} |
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
27 changes: 27 additions & 0 deletions
27
services/src/main/java/org/keycloak/protocol/ClientInstallationProvider.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,27 @@ | ||
package org.keycloak.protocol; | ||
|
||
import org.keycloak.models.ClientModel; | ||
import org.keycloak.models.KeycloakSession; | ||
import org.keycloak.models.RealmModel; | ||
import org.keycloak.provider.Provider; | ||
import org.keycloak.provider.ProviderFactory; | ||
|
||
import javax.ws.rs.core.Response; | ||
import java.net.URI; | ||
|
||
/** | ||
* Provides a template/sample client config adapter file. For example keycloak.json for our OIDC adapter. keycloak-saml.xml for our SAML client adapter | ||
* | ||
* | ||
* @author <a href="mailto:bill@burkecentral.com">Bill Burke</a> | ||
* @version $Revision: 1 $ | ||
*/ | ||
public interface ClientInstallationProvider extends Provider, ProviderFactory<ClientInstallationProvider> { | ||
Response generateInstallation(KeycloakSession session, RealmModel realm, ClientModel client, URI serverBaseUri); | ||
String getProtocol(); | ||
String getDisplayType(); | ||
String getHelpText(); | ||
String getFilename(); | ||
String getMediaType(); | ||
boolean isDownloadOnly(); | ||
} |
32 changes: 32 additions & 0 deletions
32
services/src/main/java/org/keycloak/protocol/ClientInstallationSpi.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,32 @@ | ||
package org.keycloak.protocol; | ||
|
||
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 ClientInstallationSpi implements Spi { | ||
|
||
@Override | ||
public boolean isInternal() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "client-installation"; | ||
} | ||
|
||
@Override | ||
public Class<? extends Provider> getProviderClass() { | ||
return ClientInstallationProvider.class; | ||
} | ||
|
||
@Override | ||
public Class<? extends ProviderFactory> getProviderFactoryClass() { | ||
return ClientInstallationProvider.class; | ||
} | ||
|
||
} |
Oops, something went wrong.