This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import base.shiro.ShiroRole | |
| import base.shiro.ShiroUser | |
| import org.apache.shiro.cas.CasAuthenticationException | |
| import org.apache.shiro.authc.AccountException | |
| import org.apache.shiro.authc.SimpleAuthenticationInfo | |
| import org.apache.shiro.util.StringUtils | |
| import org.apache.shiro.util.CollectionUtils | |
| import org.apache.shiro.subject.PrincipalCollection | |
| import org.apache.shiro.subject.SimplePrincipalCollection |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Remove mavenLocal from all projects | |
| // It makes builds less reproducible, and is error-prone. | |
| // http://issues.gradle.org/browse/GRADLE-2034 | |
| projectsLoaded { | |
| rootProject.allprojects { project -> | |
| [buildscript.repositories, repositories].each { repoHandler -> | |
| repoHandler.matching {it.name == "MavenLocal"}.all { repo -> | |
| //project.logger.warn("Removing repo ${repo.name} from ${project.name}") | |
| repoHandler.remove(repo) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/build.gradle b/build.gradle | |
| index 3da4379..699c56d 100644 | |
| --- a/build.gradle | |
| +++ b/build.gradle | |
| @@ -70,6 +70,7 @@ project(':feign-gson') { | |
| compile project(':feign-core') | |
| compile 'com.google.code.gson:gson:2.2.4' | |
| testCompile 'org.testng:testng:6.8.5' | |
| + testCompile 'com.google.mockwebserver:mockwebserver:20130706' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import dagger.Module; | |
| import dagger.Provides; | |
| import feign.RequestInterceptor; | |
| import feign.RequestTemplate; | |
| import org.codehaus.groovy.runtime.EncodingGroovyMethods; | |
| import java.nio.charset.StandardCharsets; | |
| @Module(library = true) | |
| public class BasicAuthenticationInterceptor implements RequestInterceptor { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package sample; | |
| import dagger.Lazy; | |
| import dagger.Module; | |
| import dagger.Provides; | |
| import feign.Client; | |
| import feign.Request; | |
| import feign.Request.Options; | |
| import feign.Response; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <project xmlns="http://maven.apache.org/POM/4.0.0" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
| http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.github.dblock.waffle</groupId> | |
| <artifactId>waffle-jna</artifactId> | |
| <version>1.5</version> | |
| <packaging>jar</packaging> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build | |
| .gradle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package waffle; | |
| import org.apache.shiro.authc.AuthenticationException; | |
| import org.apache.shiro.authc.AuthenticationInfo; | |
| import org.apache.shiro.authc.AuthenticationToken; | |
| import org.apache.shiro.authc.SimpleAuthenticationInfo; | |
| import org.apache.shiro.authc.UsernamePasswordToken; | |
| import org.apache.shiro.authc.credential.CredentialsMatcher; | |
| import org.apache.shiro.authc.credential.HashingPasswordService; | |
| import org.apache.shiro.authc.credential.PasswordMatcher; |
NewerOlder