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
<script language="JavaScript"> | |
document.write("<SCR" + "IPT SRC='" + ez_codePath + "ezloader.js'><\/SCR" + "IPT>"); | |
</script> |
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
controllerAnnotationStaticRules = [ | |
'/blurb/**': ['ROLE_ADMIN'], | |
‘/setting/**’: ['ROLE_ADMIN'] | |
] |
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
public class AuthFilters { | |
def authenticateService | |
def filters = { | |
blurbCheck(controller: 'blurb') { | |
before = { | |
if (authenticateService.ifAllGranted('ROLE_ADMIN')) { |
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
security { | |
// see DefaultSecurityConfig.groovy for all settable/overridable properties | |
active = true | |
loginUserDomainClass = "com.mattstine.wendysstore.domain.User" | |
authorityDomainClass = "com.mattstine.wendysstore.domain.Role" | |
useRequestMapDomainClass = false |
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
import org.codehaus.groovy.grails.plugins.springsecurity.Secured | |
@Secured(['ROLE_ADMIN']) | |
class ProductController { | |
//... | |
} | |
@Secured(['ROLE_ADMIN']) | |
def create = { |
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
@Bean | |
public ReceptorClient receptorClient() { | |
CredentialsProvider credentialsProvider = new BasicCredentialsProvider(); | |
credentialsProvider.setCredentials( | |
new AuthScope(receptorUri, 80), | |
new UsernamePasswordCredentials(receptorUser, receptorPassword) | |
); | |
CloseableHttpClient httpClient = HttpClients.custom() | |
.setDefaultCredentialsProvider(credentialsProvider) |
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
015-07-31 15:54:55.614 INFO 74602 --- [spring-cloud-sleuth-trace=47ca767b-468c-401e-91f4-2a6d4fe13e25,span=a4bacde0-a9fc-4fdd-95ff-f860b59fe584] [nio-3380-exec-1] o.s.c.sleuth.slf4j.Slf4jSpanListener : Starting span: MilliSpan(begin=1438376095611, end=0, name=http/, traceId=47ca767b-468c-401e-91f4-2a6d4fe13e25, parents=[], spanId=a4bacde0-a9fc-4fdd-95ff-f860b59fe584, remote=false, kVAnnotations={}, processId=null, timelineAnnotations=[TimelineAnnotation(time=1438376095613, msg=start)]) | |
2015-07-31 15:54:56.235 INFO 74602 --- [spring-cloud-sleuth-trace=47ca767b-468c-401e-91f4-2a6d4fe13e25,span=31279ad5-754a-4808-a8ee-491cb87792f6] [nio-3380-exec-2] o.s.c.sleuth.slf4j.Slf4jSpanListener : Starting span: MilliSpan(begin=1438376096235, end=0, name=http/hi2, traceId=47ca767b-468c-401e-91f4-2a6d4fe13e25, parents=[a4bacde0-a9fc-4fdd-95ff-f860b59fe584], spanId=31279ad5-754a-4808-a8ee-491cb87792f6, remote=false, kVAnnotations={}, processId=null, timelineAnnotations=[TimelineAnnotation(time=1438376096235, msg=s |
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
#!/bin/bash | |
bundle exec rake "opsmgr:destroy[deepsouthcloud]" | |
bundle exec rake "opsmgr:install[deepsouthcloud,$2]" | |
bundle exec rake "opsmgr:add_first_user[deepsouthcloud,$1]" | |
bundle exec rake "opsmgr:microbosh:configure[deepsouthcloud,$1]" | |
bundle exec rake "opsmgr:product:upload_add[deepsouthcloud,$1,$3,cf]" | |
bundle exec rake "ert:configure[deepsouthcloud,1.5,1.5]" | |
bundle exec rake "opsmgr:trigger_install[deepsouthcloud,1.5,240]" |
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
--- | |
name: deepsouthcloud | |
iaas_type: vsphere | |
vm_shepherd_configs: | |
- vcenter_creds: | |
ip: 192.168.0.11 | |
username: root | |
password: ********* | |
vsphere: | |
host: vcenter |
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
# Deploy RabbitMQ | |
ltc create rabbit rabbitmq:3-management -r -p 5672,15672 -M 5672 -m 512 | |
# Deploy Spring Cloud Config Server | |
ltc create config-server mstine/config-server --memory-mb=512 -e SPRING_CLOUD_CONFIG_SERVER_GIT_URI=https://github.com/pieterhumphrey/config-repo -p 8888 | |
# Deploy Netflix OSS Eureka via Spring Cloud Netflix | |
ltc create eureka mstine/eureka --memory-mb=512 -p 8761 | |
# Deploy Config Server Client Demo App |