Re: [cas-user] cas 5.3.x groovy script isServiceAccessAllowedForSso retrieve attributes

2019-06-13 Thread Ray Bon
Raphaël,

What is the problem you are trying to solve?

Perhaps you could call isServiceAccessAllowedForSso from 
doPrincipalAttributesAllowServiceAccess.

Ray

On Thu, 2019-06-13 at 01:25 -0700, Raphaël CHANE wrote:
Hello everyone,

I'm trying to implement a groovy script for AccessStrategy

I'm following the documentation with this code


import



org.apereo.cas.services.*


import



java.util.*



class



GroovyRegisteredAccessStrategy



extends



DefaultRegisteredServiceAccessStrategy



{




@Override




boolean



isServiceAccessAllowed

()



{




...




}





@Override




boolean



isServiceAccessAllowedForSso

()



{




...




}





@Override




boolean



doPrincipalAttributesAllowServiceAccess

(

String



principal

,



Map

<

String

,



Object

>



attributes

)



{




...




}


}


I was wondering if it was possible to retrieve the state of an attribute in 
isServiceAccessAllowedForSso? Because I need It before the 
doPrincipalAttributesAllowServiceAccess function.

Regards,

--

Ray Bon
Programmer Analyst
Development Services, University Systems
2507218831 | CLE 019 | r...@uvic.ca

I respectfully acknowledge that my place of work is located within the 
ancestral, traditional and unceded territory of the Songhees, Esquimalt and 
WSÁNEĆ Nations.

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/f95afefd72580d36203ecd82171ba8a36e635dc5.camel%40uvic.ca.


[cas-user] cas 5.3.x groovy script isServiceAccessAllowedForSso retrieve attributes

2019-06-13 Thread Raphaël CHANE
Hello everyone,

I'm trying to implement a groovy script for AccessStrategy 

I'm following the documentation with this code 

import org.apereo.cas.services.*import java.util.*
class GroovyRegisteredAccessStrategy extends 
DefaultRegisteredServiceAccessStrategy {
@Override
boolean isServiceAccessAllowed() {
...
}

@Override
boolean isServiceAccessAllowedForSso() {
...
}

@Override
boolean doPrincipalAttributesAllowServiceAccess(String principal, 
Map attributes) {
...
}}



I was wondering if it was possible to retrieve the state of an attribute in 
*isServiceAccessAllowedForSso? 
*Because I need It before the *doPrincipalAttributesAllowServiceAccess* 
function. 


*Regards,*

-- 
- Website: https://apereo.github.io/cas
- Gitter Chatroom: https://gitter.im/apereo/cas
- List Guidelines: https://goo.gl/1VRrw7
- Contributions: https://goo.gl/mh7qDG
--- 
You received this message because you are subscribed to the Google Groups "CAS 
Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cas-user+unsubscr...@apereo.org.
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/88dd4cc3-a6b2-4c48-aaf9-9b0390e0a61f%40apereo.org.