WSO2-APIM/IS How to configure repository\conf\identity\identity-providers\default.xml

我怕爱的太早我们不能终老 提交于 2019-12-12 03:07:59

问题


I have created a custom federated authenticator in WSO2-APIM/IS and have enable Just-In-Time Provisioning.

Since in API Manager when an application is created a corresponding service provider will be created as well. I want to have all service provider be using my custom authenticator as default which, I think, can be done by editing the file repository\conf\identity\identity-providers\default.xml

However I can not find the information in the documentation on the format of this file which I need to configure my custom federated authenticator and enable JIT Provisioning. Can anyone please guide me to the configuration detail of this file.

Below is the default repository\conf\identity\identity-providers\default.xml

<IdentityProvider>
    <IdentityProviderName>default</IdentityProviderName>
    <DisplayName>default</DisplayName>
    <IdentityProviderDescription></IdentityProviderDescription>
    <Alias></Alias>
    <IsPrimary></IsPrimary>
    <IsFederationHub></IsFederationHub>
    <HomeRealmId></HomeRealmId>
    <ProvisioningRole></ProvisioningRole>
    <FederatedAuthenticatorConfigs></FederatedAuthenticatorConfigs>
    <DefaultAuthenticatorConfig>
    </DefaultAuthenticatorConfig>
    <ProvisioningConnectorConfigs>
        <!--<ProvisioningConnectorConfig>
            <ProvisioningProperties>
            </ProvisioningProperties>
        </ProvisioningConnectorConfig>-->
    </ProvisioningConnectorConfigs>
    <!--<DefaultProvisioningConnectorConfig></DefaultProvisioningConnectorConfig>-->
    <ClaimConfig></ClaimConfig>
    <Certificate></Certificate>
    <PermissionAndRoleConfig></PermissionAndRoleConfig>
    <JustInTimeProvisioningConfig></JustInTimeProvisioningConfig>
</IdentityProvider>

Thank you very much in advanced.


回答1:


As per the code here, It should be in the following format.

<JustInTimeProvisioningConfig>
    <UserStoreClaimUri></UserStoreClaimUri>
    <ProvisioningUserStore>PRIMARY</ProvisioningUserStore>
    <IsProvisioningEnabled>true</ProvisioningEnabled>
</JustInTimeProvisioningConfig>

Change the ProvisioningUserStore to reflect yours.



来源:https://stackoverflow.com/questions/36905461/wso2-apim-is-how-to-configure-repository-conf-identity-identity-providers-defaul

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!