Skip to content

Commit 47c9050

Browse files
committed
core: Add registry and beans in spring registry for PluggableAPIAuthenticator
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 7ff5049 commit 47c9050

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

core/resources/META-INF/cloudstack/api/spring-core-lifecycle-api-context-inheritable.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@
3535
value="com.cloud.server.auth.UserAuthenticator" />
3636
</bean>
3737

38+
<bean class="org.apache.cloudstack.spring.lifecycle.registry.RegistryLifecycle">
39+
<property name="registry" ref="pluggableAPIAuthenticatorsRegistry" />
40+
<property name="typeClass"
41+
value=" org.apache.cloudstack.api.auth.PluggableAPIAuthenticator" />
42+
</bean>
43+
3844
<bean class="org.apache.cloudstack.spring.lifecycle.registry.RegistryLifecycle">
3945
<property name="registry" ref="securityCheckersRegistry" />
4046
<property name="typeClass"

core/resources/META-INF/cloudstack/core/spring-core-registry-core-context.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@
3333
class="org.apache.cloudstack.spring.lifecycle.registry.ExtensionRegistry">
3434
<property name="orderConfigKey" value="user.authenticators.order" />
3535
<property name="excludeKey" value="user.authenticators.exclude" />
36-
<property name="orderConfigDefault" value="SHA256SALT,MD5,LDAP,PLAINTEXT" />
36+
<property name="orderConfigDefault" value="SHA256SALT,MD5,LDAP,SAML2,PLAINTEXT" />
37+
</bean>
38+
39+
<bean id="pluggableAPIAuthenticatorsRegistry"
40+
class="org.apache.cloudstack.spring.lifecycle.registry.ExtensionRegistry">
41+
<property name="orderConfigKey" value="pluggableApi.authenticators.order" />
42+
<property name="excludeKey" value="pluggableApi.authenticators.exclude" />
43+
<property name="orderConfigDefault" value="SAML2Auth" />
3744
</bean>
3845

3946
<bean id="userPasswordEncodersRegistry"

0 commit comments

Comments
 (0)