Skip to content

Instantly share code, notes, and snippets.

View dima767's full-sized avatar
🎯
Focusing

Dmitriy Kopylenko dima767

🎯
Focusing
  • Unicon, inc.
  • Manalapan, NJ, USA
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dima767 on github.
  • I am dima767 (https://keybase.io/dima767) on keybase.
  • I have a public key ASDk1xd7Db0BV0Ahu4uP571kILT4tvvPcnySWrfTRbWVzwo

To claim this, I am signing this object:

<bean id="connectionFactory" class="org.ldaptive.DefaultConnectionFactory">
<constructor-arg index="0" value="ldap://dir1"/>
</bean>
<bean id="provider" factory-bean="connectionFactory" factory-method="getProvider"/>
<bean id="providerConfig" factory-bean="provider" factory-method="getProviderConfig">
<property name="connectionStrategy" value="ROUND_ROBIN"/>
</bean>

Keybase proof

I hereby claim:

  • I am dima767 on github.
  • I am dima767 (https://keybase.io/dima767) on keybase.
  • I have a public key whose fingerprint is A327 A430 A564 BB1F C044 4CAF F953 638E A234 02B9

To claim this, I am signing this object:

package net.unicon.cas.client.configuration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.embedded.FilterRegistrationBean;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@dima767
dima767 / resourceChangeWatcherContext.xml
Created October 31, 2014 16:10
CAS addons 1.13 resource change watcher context
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:task="http://www.springframework.org/schema/task"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:cas="http://unicon.net/schema/cas"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/task
@dima767
dima767 / YamlServicesRegistry.groovy
Created September 15, 2014 18:39
An initial prototype of SnakeYaml implementation of Yaml services registry for CAS
@Grab(group='org.yaml', module='snakeyaml', version='1.14')
import org.yaml.snakeyaml.*
def yamlDoc = """
---
services:
-
id: 1
serviceId: https://www.google.com/**
name: "GOOGLE"
@dima767
dima767 / servicesRegistry.yaml
Last active August 29, 2015 14:06
Prototype of the possible YAML service registry format for CAS server
---
services:
-
id: 1
serviceId: https://www.google.com/**
name: GOOGLE
description: Test service with ant-style pattern matching
theme: my_example_theme
allowedToProxy: true
enabled: true
@Configuration
@EnableAutoConfiguration
@ComponentScan
class SampleApplication implements ApplicationListener<ContextRefreshedEvent> {
static void main(String[] args) throws Exception {
SpringApplication.run(SampleApplication.class, args)
}
@Override
<!-- CAS client filters -->
<filter>
<filter-name>CAS Authentication Filter</filter-name>
<filter-class>
org.jasig.cas.client.authentication.AuthenticationFilter
</filter-class>
<init-param>
<param-name>casServerLoginUrl</param-name>
<param-value>{cas-server}/cas/login</param-value>
</init-param>
{
"services":[
{
"id":"1",
"serviceId":"https://www.google.com",
"name":"GOOGLE",
"description":"Test Google service",
"evaluationOrder":"1",
"extraAttributes":{
"authzAttributes":{