Re: [cas-user] Configuration property overrides via environment variables does not work

2020-06-30 Thread Paul Roemer
Hey guys,

I was out sick for a couple of days so I could not answer.

@Ray, I am using the latest and greatest CAS 6.2 release. And I do not 
recall in which RC but at some point it was decided to switch from 
camelCase to kebab-case. That is why it is 
cas.service-registry.json.location in my case.

@ste, so you are facing the same issue. Are you sure about the Spring Boot 
behavior? I just tried it (Spring Boot 2.2.8 as CAS 6.2 is using it, too) 
and it works at least for the server.port property:

java -jar ./build/libs/demo-0.0.1-SNAPSHOT.jar --server.port=8080

I set it to 8081 in the application.properties and override it via command 
line parameter. And that's also what I understand from the Spring Boot 
documentation.


On Thursday, June 25, 2020 at 9:43:00 PM UTC+2 ste wrote:

> Hi Paul,
>
> I had the same probleme. What I notice :
>
> If you coment or you remove property in app.properties, the corresponding 
> env var is used. 
>
> But if you have it in the app.properties, property will not be erasse by 
> env var.
>
> But for me is same as other spring-boot app. Maybe what you are tallking 
> about it's a new feature in a newest version of sprint boot ?!
>
> For your purpose use spring boot profil and multi app.properties.
>
>
>
>
>
>
>
>
>
>
>
> Le jeu. 25 juin 2020 à 17:04, Paul Roemer  a écrit :
>
>> Hey guys,
>>
>> today we noticed that we are not able to override properties set in some 
>> application properties file by environment variables. 
>> For example, we have some property 'secrect' that we configure with value 
>> 'unknown' in application-production.properties. Now, for the deployment we 
>> want to override the property by setting the env variable SECRET=dontaskme. 
>> But it fails and it's still 'unknown'. On the other hand after removing the 
>> property 'secret' from the application-production.properties, the 
>> environment variable is taken into account and the value is 'dontaskme'.
>>
>> So, does CAS not behave as normal Spring Boot applications when it comes 
>> to property overrides?
>>
>> Cheers,
>>   Paul
>>
>> -- 
>> - 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+u...@apereo.org.
>> To view this discussion on the web visit 
>> https://groups.google.com/a/apereo.org/d/msgid/cas-user/0e49b715-d2d6-49f4-b33e-01670375343cn%40apereo.org
>>  
>> 
>> .
>>
>

-- 
- 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/4350c405-62bc-47dc-9878-832d1f1b7ddbn%40apereo.org.


Re: [cas-user] CAS SSO Login

2020-06-30 Thread Ray Bon
Yohannan,

You will have to see if Laravel supports a cas client. If so, the client would 
'listen' for authenticated cas users. Other users would pass through to normal 
login. The cas client will supply your application with the username.

Ray

On Mon, 2020-06-29 at 22:09 -0700, Yohannan Varghese wrote:
HI All,

We have a Laravel 5.7 application with back end mysql. We have so many clients 
in our website with their users and able to register /login to our website with 
a username/password.

Now one of our clients wants their users to SSO login with CAS 2.0.

They are asking to create a CAS unique URL and validate that etc. I am new to 
this. Kindly help to integrate this. This client has a login page here user has 
to enter their login credentials and then I need to validate that user to login 
to my website.

Kindly help to resolve this task.

Thanks in advance.

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/a0cef48d39f4d6b034e9bc467e8f5a35cf90d48f.camel%40uvic.ca.


Re: [cas-user] How to Monitor Active SSO Sessions & Statistics

2020-06-30 Thread Moritz Mühlenhoff
Hi,

> i want to expose current active sso session number and staticstics by 
> actuator api. i have searched cas blog and page 
> (https://apereo.github.io/cas/development/monitoring/Monitoring-Statistics.html,
>  https://apereo.github.io/2018/11/06/cas6-admin-endpoints-security/), but i 
> couldnt find a way to do that.
> i just need like these apis; /actuator/ssoSessions, /actuator/statistics
>
> i have added this dependecy to build.gradle
>
> compile "org.apereo.cas:cas-server-support-metrics:${casServerVersion}"

We're running a 6.1 setup with the ssoSessions actuator, try enabling

compile "org.apereo.cas:cas-server-support-reports:${project.'cas.version'}"

in the Gradle build.

Cheers,
Moritz

-- 
- 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/CAFD1En9eYL0WW%3DaHaEOPbQvU3w5WhsHNK1JLyC6TpUt1-m84XQ%40mail.gmail.com.


Re: [cas-user] CAS WAR Overlay - REST APIs added in custom java class not detecting

2020-06-30 Thread Nishant Singh
Hi Ray,

Thanks a lot for your reply. Your response worked for me. I looked into the 
architecture of CAS Support Rest module and understood that you have to 
register your new controller in CasRestConfiguration.java as a bean and 
injecting all the dependencies required by the controller class.

Now i am able to add my own classes in the CAS Overlay Project by 
configuring them and also customize  the existing classes of CAS too.


Nishant Singh

On Friday, 19 June 2020 21:51:39 UTC+5:30, rbon wrote:
>
> Nishant,
>
> You will also have to add, to cas overlay, the configuration to let it 
> know how to handle your endpoint.
> Look in to how cas does its REST login, 
> https://apereo.github.io/cas/development/protocol/REST-Protocol.html. 
> This will require digging in to the cas source, 
> https://github.com/apereo/cas.
>
> Ray
>
> On Fri, 2020-06-19 at 04:52 -0700, Nishant Singh wrote:
>
> Notice: This message was sent from outside the University of Victoria 
> email system. Please be cautious with links and sensitive information. 
>
> I am working on customising *CAR WAR Overlay with version 6.1.x* and add 
> some new functionalities in the form of REST APIs. Now CAS says that in 
> order to add a custom java class we need to do the following: 
>
> *"In order to include custom Java source, it should be included under a 
> src/main/java directory in the overlay project source tree."*
>
> *So i included my java class which is a REST Controller at this location: 
> src/main/java/com/example/rest/RestController.class*
>
> *However, when I run my overlay project in intellij using the command 
> ./gradlew run and try the APIs in Postman then i get 404. Am i missing 
> something here?*
>
> *I want to do the customisation in overlay so i dont face problem whenever 
> i upgrade cas version. **This is the link where CAS explains about the 
> ability to customise is below:*
>
> https://apereo.github.io/cas/development/installation/WAR-Overlay-Installation.html#custom-and-third-party-source
>
> -- 
>
> Ray Bon
> Programmer Analyst
> Development Services, University Systems
> 2507218831 | CLE 019 | rb...@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/5658eb19-b00c-4db6-829e-dfe687bbfd33o%40apereo.org.