All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.smallmind.web.oauth.v1.oauth.xml Maven / Gradle / Ivy

There is a newer version: 3.3.24
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

  <import resource="classpath:org/smallmind/web/grizzly/grizzly.xml"/>

  <!-- OAuth Resources -->
  <bean id="oauthConfig" class="org.smallmind.web.oauth.v1.OAuthConfiguration">
    <!-- <property name="secretService" ref=""/> -->
    <property name="ssoCookieName" value="smallmind_sso"/>
    <property name="oauthProtocolLeaseDuration">
      <bean class="org.smallmind.nutsnbolts.time.Duration">
        <constructor-arg index="0" name="time" value="10"/>
        <constructor-arg index="1" name="timeUnit" value="MINUTES"/>
      </bean>
    </property>
    <property name="oauthTokenGrantDuration">
      <bean class="org.smallmind.nutsnbolts.time.Duration">
        <constructor-arg index="0" name="time" value="20"/>
        <constructor-arg index="1" name="timeUnit" value="HOURS"/>
      </bean>
    </property>
    <property name="registrationMap">
      <map>
        <entry key="1">
          <bean class="org.smallmind.web.oauth.v1.OAuthRegistration">
            <property name="oauthUri" value="http://${oauth.host.server}:${oauth.port.server}${grizzly.rest_path}/v1/oauth/authorization"/>
            <property name="loginUri" value="http://${oauth.host.node}:${oauth.port.node}#/login"/>
            <property name="redirectUri" value="http://${grizzly.host}:${grizzly.port}${grizzly.rest_path}/spoof/exchange"/>
            <property name="secret" value="ourlittlesecret"/>
          </bean>
        </entry>
        <entry key="2">
          <bean class="org.smallmind.web.oauth.v1.OAuthRegistration">
            <property name="oauthUri" value="http://${oauth.host.server}:${oauth.port.server}${grizzly.rest_path}/v1/oauth/authorization"/>
            <property name="loginUri" value="http://${oauth.host.node}:${oauth.port.node}#/login"/>
            <property name="redirectUri" value="http://10.10.3.40/test3/index.asp"/>
            <property name="secret" value="ourlittlesecret"/>
          </bean>
        </entry>
        <entry key="3">
          <bean class="org.smallmind.web.oauth.v1.OAuthRegistration">
            <property name="oauthUri" value="http://${oauth.host.server}:${oauth.port.server}${grizzly.rest_path}/v1/oauthsansredirect/authorization"/>
            <property name="loginUri" value="http://${oauth.host.node}:${oauth.port.node}#/login"/>
            <property name="unsafeRedirection" value="true"/>
            <property name="redirectUri" value="http://${oauth.host.node}:${oauth.port.node}#/oauth"/>
            <property name="secret" value="ourlittlesecret"/>
          </bean>
        </entry>
      </map>
    </property>
  </bean>

  <bean id="v1OAuthSansRedirectResource" class="org.smallmind.web.oauth.v1.OAuthSansRedirectResource">
    <property name="oauthConfiguration" ref="oauthConfig"/>
  </bean>

  <bean id="v1OAuthResource" class="org.smallmind.web.oauth.v1.OAuthResource">
    <property name="oauthConfiguration" ref="oauthConfig"/>
  </bean>

</beans>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy