Skip to content

Commit

Permalink
Merge branch 'release/0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
visualphoenix committed Sep 28, 2016
2 parents 0ed5764 + 83f782c commit 297c617
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Cas.groovy
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
// Configure global CAS security realm
def cas = {
instance, casServerUrl,
forceRenewal=false, enableSingleSignOut=true,
casAuthoritiesAttribute="groups,roles", casFullNameAttribute='cn',
casEmailAttribute='mail',
casProxyEnabled=true, casProxyAllowAny=true, casProxyAllowList=''->
hudson.security.cas.CasProtocol casProtocol = new hudson.security.cas.protocols.Cas20Protocol(
def cas = { instance, casServerUrl,
forceRenewal=false, enableSingleSignOut=true,
casAuthoritiesAttribute="groups,roles", casFullNameAttribute='cn',
casEmailAttribute='mail',
casProxyEnabled=true, casProxyAllowAny=true, casProxyAllowList='' ->
def casProtocol = new org.jenkinsci.plugins.cas.protocols.Cas20Protocol(
casAuthoritiesAttribute,
casFullNameAttribute,
casEmailAttribute,
casProxyEnabled,
casProxyAllowAny,
casProxyAllowList
)
hudson.security.SecurityRealm cas_realm = new hudson.security.cas.CasSecurityRealm(
def cas_realm = new org.jenkinsci.plugins.cas.CasSecurityRealm(
casServerUrl,
casProtocol,
forceRenewal,
Expand Down

0 comments on commit 297c617

Please sign in to comment.