2016-05-25 13 views
0

カスタムのフェデレーション認証者を作成し、 'kbank'というIDプロバイダーで構成しました。WSO2 APIM/IS:既定のIDプロバイダーを構成する方法

すべてのサービスプロバイダがこのIDプロバイダをデフォルトで使用するように設定するには、各サービスプロバイダごとに個別に指定する必要はありません。 APIマネージャーでは、各アプリケーションがサービスプロバイダとして作成されるため、システムには多くのサービスプロバイダが増えます。

サービスプロバイダの設定ページには、「デフォルト」のオプションがありますが、デフォルトを指定する方法はありません。

enter image description here

ありがとうございました。

答えて

0

このpostのおかげで、私の問題の解決策は、私はfarasath

<ServiceProvider> 
    <ApplicationID>1</ApplicationID> 
    <ApplicationName>default</ApplicationName> 
    <Description>Default Service Provider</Description> 
    <InboundAuthenticationConfig> 
     <InboundAuthenticationRequestConfigs> 
      <InboundAuthenticationRequestConfig> 
       <InboundAuthKey>default</InboundAuthKey> 
       <InboundAuthType></InboundAuthType> 
       <Properties></Properties> 
      </InboundAuthenticationRequestConfig> 
     </InboundAuthenticationRequestConfigs> 
    </InboundAuthenticationConfig> 
    <LocalAndOutBoundAuthenticationConfig> 
     <AuthenticationSteps> 
      <AuthenticationStep> 
       <StepOrder>1</StepOrder> 
       <FederatedIdentityProviders> 
        <IdentityProvider> 
         <IdentityProviderName>kbank</IdentityProviderName> 
         <IsEnabled>true</IsEnabled> 
         <FederatedAuthenticatorConfigs> 
          <FederatedAuthenticatorConfig> 
           <Name>MyAuthenticator</Name> 
           <IsEnabled>true</IsEnabled> 
          </FederatedAuthenticatorConfig> 
         </FederatedAuthenticatorConfigs> 
         <DefaultAuthenticatorConfig>MyAuthenticator</DefaultAuthenticatorConfig> 
         <JustInTimeProvisioningConfig> 
          <UserStoreClaimUri></UserStoreClaimUri> 
          <ProvisioningUserStore>PRIMARY</ProvisioningUserStore> 
          <IsProvisioningEnabled>true</IsProvisioningEnabled> 
         </JustInTimeProvisioningConfig> 
        </IdentityProvider> 
       </FederatedIdentityProviders> 
       <SubjectStep>true</SubjectStep> 
       <AttributeStep>true</AttributeStep> 
      </AuthenticationStep> 
     </AuthenticationSteps> 
    </LocalAndOutBoundAuthenticationConfig> 
    <RequestPathAuthenticatorConfigs></RequestPathAuthenticatorConfigs> 
    <InboundProvisioningConfig></InboundProvisioningConfig> 
    <OutboundProvisioningConfig></OutboundProvisioningConfig> 
    <ClaimConfig> 
     <AlwaysSendMappedLocalSubjectId>true</AlwaysSendMappedLocalSubjectId> 
    </ClaimConfig> 
    <PermissionAndRoleConfig></PermissionAndRoleConfig> 
</ServiceProvider> 
0

application-authentication.xml IS_HOME/repository/conf/identityにあるデフォルトのオーセンティケータまたはデフォルトのシーケンスを指定できます。これは<Sequences>セクションを使用して変更できます。デフォルトの配列の下に示すように、ここで

はあなたがデフォルトとして任意の認証サーバを使用するように変更することができますBasicAuthenticatorは

<Sequences> 
     <!-- Default Sequence. This is mandatory --> 
     <Sequence appId="default"> 
      <Step order="1"> 
       <Authenticator name="BasicAuthenticator"/> 
      </Step> 
     </Sequence> 
</Sequences> 

を使用して、単一ステップの認証シーケンスとして設定されています。認証者の名前を指定する必要があります。

+0

感謝をたどるよう<APIM_Home>\repository\conf\identity\service-providers\default.xmlを変更する必要があります。 "BasicAuthenticator"をAPI Managerのカーボンで指定したアイデンティティプロバイダの名前に置き換えて、あなたの提案を試みましたが、実行時に次の例外がありました。 'java.lang.NullPointerExceptionが \t org.wso2.carbon.identity.application.authentication.framework.config.builder.FileBasedConfigurationBuilder.processStepElement(FileBasedConfigurationBuilder.java:645)' 万一のAPIマネージャの構成を拾います私が設定したものからIDPを取得するか、それ以外の場所でIDPプロパティを指定する必要がありますか? – tinnapat

関連する問題