Example of gridgain's config:
<bean class="org.apache.ignite.plugin.security.SecurityCredentials" id="server.cred">
<constructor-arg value="server"/>
<constructor-arg value="password"/>
</bean>
<bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
<property name="pluginConfigurations">
<list>
<bean class="org.gridgain.grid.configuration.GridGainConfiguration">
<property name="authenticator">
<bean class="com.github.wirtzleg.gridgain.security.OAuth2Authenticator">
<property name="userInfoUrl" value="https://openidconnect.googleapis.com/v1/userinfo"/>
<property name="aclProvider">
<bean class="org.gridgain.grid.security.passcode.AuthenticationAclBasicProvider">
<constructor-arg>
<map>
<!-- server.cred credentials and associated permissions (everything is allowed) -->
<entry key-ref="server.cred" value="{defaultAllow:true}"/>
</map>
</constructor-arg>
</bean>
</property>
</bean>
</property>
<!-- Credentials for the current node. -->
<property name="securityCredentialsProvider">
<bean class="org.apache.ignite.plugin.security.SecurityCredentialsBasicProvider">
<constructor-arg ref="server.cred"/>
</bean>
</property>
</bean>
</list>
</property>
</bean>