-
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: add role mapping for template import (#51)
- Loading branch information
1 parent
92f2006
commit 3d893f6
Showing
9 changed files
with
228 additions
and
24 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
131 changes: 131 additions & 0 deletions
131
docs/modules/onecx-permission-svc/pages/onecx-permission-svc.adoc
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,131 @@ | ||
|
||
:summaryTableId: onecx-permission-svc | ||
[.configuration-legend] | ||
icon:lock[title=Fixed at build time] Configuration property fixed at build time - All other configuration properties are overridable at runtime | ||
[.configuration-reference.searchable, cols="80,.^10,.^10"] | ||
|=== | ||
|
||
h|[[onecx-permission-svc_configuration]]link:#onecx-permission-svc_configuration[Configuration property] | ||
|
||
h|Type | ||
h|Default | ||
|
||
a| [[onecx-permission-svc_onecx-permission-template-tenants]]`link:#onecx-permission-svc_onecx-permission-template-tenants[onecx.permission.template.tenants]` | ||
|
||
|
||
[.description] | ||
-- | ||
Template import tenants | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TEMPLATE_TENANTS+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TEMPLATE_TENANTS+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|list of string | ||
|`default` | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-template-role-mapping-role-mapping]]`link:#onecx-permission-svc_onecx-permission-template-role-mapping-role-mapping[onecx.permission.template.role-mapping]` | ||
|
||
|
||
[.description] | ||
-- | ||
Role mapping for the template import | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TEMPLATE_ROLE_MAPPING+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TEMPLATE_ROLE_MAPPING+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|`Map<String,String>` | ||
| | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-token-verified]]`link:#onecx-permission-svc_onecx-permission-token-verified[onecx.permission.token.verified]` | ||
|
||
|
||
[.description] | ||
-- | ||
Verified permission token | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TOKEN_VERIFIED+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TOKEN_VERIFIED+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|boolean | ||
|`false` | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-token-issuer-public-key-location-suffix]]`link:#onecx-permission-svc_onecx-permission-token-issuer-public-key-location-suffix[onecx.permission.token.issuer.public-key-location.suffix]` | ||
|
||
|
||
[.description] | ||
-- | ||
Issuer public key location suffix. | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TOKEN_ISSUER_PUBLIC_KEY_LOCATION_SUFFIX+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TOKEN_ISSUER_PUBLIC_KEY_LOCATION_SUFFIX+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
|`/protocol/openid-connect/certs` | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-token-issuer-public-key-location-enabled]]`link:#onecx-permission-svc_onecx-permission-token-issuer-public-key-location-enabled[onecx.permission.token.issuer.public-key-location.enabled]` | ||
|
||
|
||
[.description] | ||
-- | ||
Issuer public key location enabled | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TOKEN_ISSUER_PUBLIC_KEY_LOCATION_ENABLED+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TOKEN_ISSUER_PUBLIC_KEY_LOCATION_ENABLED+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|boolean | ||
|`false` | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-token-claim-separator]]`link:#onecx-permission-svc_onecx-permission-token-claim-separator[onecx.permission.token.claim.separator]` | ||
|
||
|
||
[.description] | ||
-- | ||
Claim separator | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TOKEN_CLAIM_SEPARATOR+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TOKEN_CLAIM_SEPARATOR+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
| | ||
|
||
|
||
a| [[onecx-permission-svc_onecx-permission-token-claim-path]]`link:#onecx-permission-svc_onecx-permission-token-claim-path[onecx.permission.token.claim.path]` | ||
|
||
|
||
[.description] | ||
-- | ||
Claim path | ||
|
||
ifdef::add-copy-button-to-env-var[] | ||
Environment variable: env_var_with_copy_button:+++ONECX_PERMISSION_TOKEN_CLAIM_PATH+++[] | ||
endif::add-copy-button-to-env-var[] | ||
ifndef::add-copy-button-to-env-var[] | ||
Environment variable: `+++ONECX_PERMISSION_TOKEN_CLAIM_PATH+++` | ||
endif::add-copy-button-to-env-var[] | ||
--|string | ||
|`realm_access/roles` | ||
|
||
|=== |
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
src/main/java/org/tkit/onecx/permission/domain/di/TemplateConfig.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 @@ | ||
package org.tkit.onecx.permission.domain.di; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
import io.quarkus.runtime.annotations.ConfigDocFilename; | ||
import io.quarkus.runtime.annotations.ConfigPhase; | ||
import io.quarkus.runtime.annotations.ConfigRoot; | ||
import io.quarkus.runtime.annotations.StaticInitSafe; | ||
import io.smallrye.config.ConfigMapping; | ||
import io.smallrye.config.WithDefault; | ||
import io.smallrye.config.WithName; | ||
|
||
@StaticInitSafe | ||
@ConfigDocFilename("onecx-permission-svc.adoc") | ||
@ConfigMapping(prefix = "onecx.permission.template") | ||
@ConfigRoot(phase = ConfigPhase.RUN_TIME) | ||
public interface TemplateConfig { | ||
|
||
/** | ||
* Role mapping for the template import | ||
*/ | ||
@WithName("role-mapping") | ||
Map<String, String> roleMapping(); | ||
|
||
/** | ||
* Template import tenants | ||
*/ | ||
@WithName("tenants") | ||
@WithDefault("default") | ||
List<String> tenants(); | ||
|
||
} |
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