forked from Confluex/Zuul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge remote-tracking branch 'origin/1.6.x'"
- Loading branch information
Showing
23 changed files
with
165 additions
and
227 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,21 +8,10 @@ | |
<name>Zuul: Parent POM</name> | ||
<url>https://github.com/psmith/Zuul</url> | ||
<scm> | ||
<connection>scm:git:[email protected]:Confluex/zuul.git</connection> | ||
<url>scm:git:[email protected]:Confluex/zuul.git</url> | ||
<developerConnection>scm:git:[email protected]:Confluex/zuul.git</developerConnection> | ||
<tag>1.6.x</tag> | ||
<connection>scm:git:[email protected]:mcantrell/Zuul.git</connection> | ||
<url>scm:git:[email protected]:mcantrell/Zuul.git</url> | ||
<developerConnection>scm:git:[email protected]:mcantrell/Zuul.git</developerConnection> | ||
</scm> | ||
<distributionManagement> | ||
<repository> | ||
<id>confluex-public-releases</id> | ||
<url>http://dev.confluex.com/nexus/content/repositories/public-releases</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>confluex-public-snapshots</id> | ||
<url>http://dev.confluex.com/nexus/content/repositories/public-snapshots</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<licenses> | ||
<license> | ||
<name>The Apache Software License, Version 2.0</name> | ||
|
@@ -36,16 +25,9 @@ | |
<name>Mike Cantrell</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
<developer> | ||
<id>psmith</id> | ||
<name>Paul.Smith</name> | ||
<email>[email protected]</email> | ||
</developer> | ||
</developers> | ||
<properties> | ||
<devnull.version>1.1</devnull.version> | ||
<sonar.language>grvy</sonar.language> | ||
<sonar.sources>src/main/groovy</sonar.sources> | ||
</properties> | ||
<parent> | ||
<groupId>org.devnull</groupId> | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
17 changes: 0 additions & 17 deletions
17
zuul-data/src/test/groovy/org/devnull/zuul/data/model/SettingsEntryTest.groovy
This file was deleted.
Oops, something went wrong.
This file contains 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
21 changes: 3 additions & 18 deletions
21
zuul-web/src/main/groovy/org/devnull/zuul/web/OpenIdLoginController.groovy
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
package org.devnull.zuul.web | ||
|
||
import groovy.json.JsonSlurper | ||
import org.springframework.context.annotation.Profile | ||
import org.springframework.core.io.ClassPathResource | ||
import org.springframework.stereotype.Controller | ||
import org.springframework.web.bind.annotation.RequestMapping | ||
import org.springframework.web.bind.annotation.RequestMethod | ||
import org.springframework.web.servlet.ModelAndView | ||
|
||
@Controller | ||
@Profile("security-openid") | ||
class OpenIdLoginController { | ||
|
||
@RequestMapping(value = "/login", method = RequestMethod.GET) | ||
public ModelAndView login() { | ||
//return back to index.jsp | ||
ModelAndView model = new ModelAndView("/login/openid"); | ||
model.addObject("providers", getProviders()); | ||
return model; | ||
|
||
} | ||
|
||
def getProviders(){ | ||
def json = new ClassPathResource("security/OpenIdProviders.json").inputStream.text | ||
def slurper = new JsonSlurper() | ||
return slurper.parseText(json).openIdProviders | ||
@RequestMapping("/login") | ||
String login() { | ||
return "/login/openid" | ||
} | ||
} |
This file contains 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
59 changes: 59 additions & 0 deletions
59
zuul-web/src/main/resources/examples/zuul-data-config.properties
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#------------ In Memory H2 Database ------------# | ||
# Embedded databases which is useful for # | ||
# evaluation purposes. The data is wiped after # | ||
# server restart. # | ||
#-----------------------------------------------# | ||
jdbc.zuul.url=jdbc:h2:mem:zuul | ||
#jdbc.zuul.url=jdbc:h2:tcp://localhost/~/.zuul/data | ||
jdbc.zuul.generate.ddl=validate | ||
jdbc.zuul.username=sa | ||
jdbc.zuul.password= | ||
jdbc.zuul.driver=org.h2.Driver | ||
jdbc.zuul.dialect=org.hibernate.dialect.H2Dialect | ||
jdbc.zuul.validationQuery=select 1 | ||
|
||
#------------ Microsoft SQL Database ------------# | ||
# Create a connection for microsoft SQL server # | ||
# using the JTDS driver. # | ||
# # | ||
# Check the JTDS docs for more info: # | ||
# http://jtds.sourceforge.net/faq.html#urlFormat # | ||
#------------------------------------------------# | ||
#jdbc.zuul.url=jdbc:jtds:sqlserver://SERVERNAME:1433/zuul | ||
#jdbc.zuul.generate.ddl=none | ||
#jdbc.zuul.username= | ||
#jdbc.zuul.password= | ||
#jdbc.zuul.driver=net.sourceforge.jtds.jdbc.Driver | ||
#jdbc.zuul.dialect=org.hibernate.dialect.SQLServerDialect | ||
#jdbc.zuul.validationQuery=select 1 | ||
|
||
#---------------- MySQL Database ----------------# | ||
# Create a connection for MySQL # | ||
#------------------------------------------------# | ||
#jdbc.zuul.url=jdbc:mysql://SERVERNAME/zuul | ||
#jdbc.zuul.generate.ddl=none | ||
#jdbc.zuul.username= | ||
#jdbc.zuul.password= | ||
#jdbc.zuul.driver=com.mysql.jdbc.Driver | ||
#jdbc.zuul.dialect=org.hibernate.dialect.MySQLDialect | ||
#jdbc.zuul.validationQuery=select 1 from DUAL | ||
|
||
#---------------- Other Databases ----------------# | ||
# Zuul should work with most other databases. You # | ||
# Just need to find out the appropriate driver # | ||
# class, hibernate dialect and validation query. # | ||
# # | ||
# Google has your back. Go do some searching :-) # | ||
#-------------------------------------------------# | ||
|
||
|
||
#------------ Mail Settings ------------# | ||
# If set to 3025 and localhost, an # | ||
# embedded GreenMail server will be # | ||
# started for testing purposes. # | ||
#---------------------------------------# | ||
smtp.port=25 | ||
smtp.host=smtp | ||
smtp.from=Zuul <[email protected]> | ||
smtp.username= | ||
smtp.password= |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.