Add profile feature for hosting keycloak.js on the server (#14771)
* Add profile feature for hosting keycloak.js on the server Closes #14770 * Updated txt files for HelpCommandTest
This commit is contained in:
parent
148c7695ff
commit
fda26385ec
12 changed files with 26 additions and 22 deletions
|
@ -191,7 +191,8 @@ public class Profile {
|
|||
CLIENT_SECRET_ROTATION("Client Secret Rotation", Type.PREVIEW),
|
||||
STEP_UP_AUTHENTICATION("Step-up Authentication", Type.DEFAULT),
|
||||
RECOVERY_CODES("Recovery codes", Type.PREVIEW),
|
||||
UPDATE_EMAIL("Update Email Action", Type.PREVIEW);
|
||||
UPDATE_EMAIL("Update Email Action", Type.PREVIEW),
|
||||
JS_ADAPTER("Host keycloak.js and keycloak-authz.js through the Keycloak sever", Type.DEFAULT);
|
||||
|
||||
|
||||
private final Type typeProject;
|
||||
|
|
|
@ -48,14 +48,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
HTTP/TLS:
|
||||
|
||||
|
|
|
@ -48,14 +48,14 @@ Feature:
|
|||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin2, docker,
|
||||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
HTTP/TLS:
|
||||
|
||||
|
|
|
@ -71,14 +71,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -71,14 +71,14 @@ Feature:
|
|||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin2, docker,
|
||||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -132,14 +132,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -132,14 +132,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -77,14 +77,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -77,14 +77,14 @@ Feature:
|
|||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin2, docker,
|
||||
impersonation, openshift-integration, scripts, token-exchange, web-authn,
|
||||
client-policies, ciba, map-storage, par, declarative-user-profile,
|
||||
dynamic-scopes, client-secret-rotation, step-up-authentication,
|
||||
recovery-codes, update-email, preview.
|
||||
recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -138,14 +138,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -138,14 +138,14 @@ Feature:
|
|||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
--features-disabled <feature>
|
||||
Disables a set of one or more features. Possible values are: authorization,
|
||||
account2, account-api, admin-fine-grained-authz, admin-api, admin, admin2,
|
||||
docker, impersonation, openshift-integration, scripts, token-exchange,
|
||||
web-authn, client-policies, ciba, map-storage, par,
|
||||
declarative-user-profile, dynamic-scopes, client-secret-rotation,
|
||||
step-up-authentication, recovery-codes, update-email, preview.
|
||||
step-up-authentication, recovery-codes, update-email, js-adapter, preview.
|
||||
|
||||
Hostname:
|
||||
|
||||
|
|
|
@ -105,7 +105,10 @@ public class KeycloakApplication extends Application {
|
|||
singletons.add(new AdminRoot());
|
||||
}
|
||||
classes.add(ThemeResource.class);
|
||||
|
||||
if (Profile.isFeatureEnabled(Profile.Feature.JS_ADAPTER)) {
|
||||
classes.add(JsResource.class);
|
||||
}
|
||||
|
||||
classes.add(KeycloakSecurityHeadersFilter.class);
|
||||
classes.add(KeycloakErrorHandler.class);
|
||||
|
|
Loading…
Reference in a new issue