Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Raheem Shaik
Hi Andy,

Thanks for helping me out on this issue.

I tried the steps which provided by you but still i am getting error

2019-11-18 07:42:31,665 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- 
2019-11-18 07:42:31,735 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 07:42:33,084 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - 
java.lang.NullPointerException: null
at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 07:42:33,090 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 07:42:33,329 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]
at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]
2019-11-18 07:42:33,329 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

2019-11-18 07:42:33,364 INFO [org.apereo.cas.web.CasWebApplication] - 
2019-11-18 07:42:33,478 INFO [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 07:42:33,487 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- 
*2019-11-18 07:42:41,104 WARN [org.apereo.cas.web.CasWebApplicationContext]
- *
+













*ubuntu@ip-x-x-x-x:~/dynamodb/ebt_platform_cas/src$ cat
cas.propertiescas.server.name : https://test
./cas.server.prefix: https://test
./caslogging.config:
file:/etc/cas/config/log4j2.xmlcas.authn.accept.users=casuser::Melloncas.spring.cloud.dynamoDb.credentialAccessKey=xxcas.spring.cloud.dynamoDb.credentialSecretKey=xxcas.spring.cloud.dynamoDb.endpoint=http://localhost:8000
cas.spring.cloud.dynamoDb.region=US_EAST_1cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false*

Regards,
Raheem Shaik

On Mon, Nov 18, 2019 at 12:41 PM Andy Ng  wrote:

> Hi Raheem,
>
> No need to be sorry, we are learning together :)
>
> It is very hard for me to help debug your problem, due to the fact that I
> don't have AWS account and I am out of credit card for AWS free tier :(
>
> Can you help try something, instead of:
> 
> cas.server.name: https://test.
> cas.server.prefix: https://test./cas
>
>
> logging.config: file:/etc/cas/config/log4j2.xml
>
> cas.authn.accept.users=casuser::Mellon
>
> cas.spring.cloud.dynamodb.credentialAccessKey=xx
> cas.spring.cloud.dynamodb.credentialSecretKey=xxx
> cas.spring.cloud.dynamodb.endpoint=http://localhost:8000
> cas.spring.cloud.dynamodb.region=US_EAST_1
>
> cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false
>
>
> cas.spring.cloud.dynamoDb.readCapacity=10
> cas.spring.cloud.dynamoDb.writeCapacity=10
> cas.spring.cloud.dynamoDb.connectionTimeout=5000
> cas.spring.cloud.dynamoDb.requestTimeout=5000
> cas.spring.cloud.dynamoDb.socketTimeout=5000
> cas.spring.cloud.dynamoDb.useGzip=false
> 

Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Andy Ng
Hi Raheem,

No need to be sorry, we are learning together :)

It is very hard for me to help debug your problem, due to the fact that I 
don't have AWS account and I am out of credit card for AWS free tier :(

Can you help try something, instead of:

cas.server.name: https://test.
cas.server.prefix: https://test./cas


logging.config: file:/etc/cas/config/log4j2.xml

cas.authn.accept.users=casuser::Mellon

cas.spring.cloud.dynamodb.credentialAccessKey=xx
cas.spring.cloud.dynamodb.credentialSecretKey=xxx
cas.spring.cloud.dynamodb.endpoint=http://localhost:8000
cas.spring.cloud.dynamodb.region=US_EAST_1

cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false


cas.spring.cloud.dynamoDb.readCapacity=10
cas.spring.cloud.dynamoDb.writeCapacity=10
cas.spring.cloud.dynamoDb.connectionTimeout=5000
cas.spring.cloud.dynamoDb.requestTimeout=5000
cas.spring.cloud.dynamoDb.socketTimeout=5000
cas.spring.cloud.dynamoDb.useGzip=false
cas.spring.cloud.dynamoDb.useReaper=false
cas.spring.cloud.dynamoDb.useThrottleRetries=false
cas.spring.cloud.dynamoDb.useTcpKeepAlive=false
cas.spring.cloud.dynamoDb.protocol=HTTPS
cas.spring.cloud.dynamoDb.clientExecutionTimeout=1
cas.spring.cloud.dynamoDb.cacheResponseMetadata=false
cas.spring.cloud.dynamoDb.maxConnections=10


Can you help reduce the unnecessary properties, so it is more clear like 
this:

cas.server.name: https://test.
cas.server.prefix: https://test./cas


logging.config: file:/etc/cas/config/log4j2.xml

cas.authn.accept.users=casuser::Mellon

cas.spring.cloud.dynamoDb.credentialAccessKey=xx
cas.spring.cloud.dynamoDb.credentialSecretKey=xxx
cas.spring.cloud.dynamoDb.endpoint=http://localhost:8000
cas.spring.cloud.dynamoDb.region=US_EAST_1
cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false


Also, making very sure that it is dynamo*D*b instead of dynamo*d*b, the 
upper letter might matter.

Let see if the error still occurs if you configured it like this

Cheers!
- Andy



-- 
- 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/fecb36c7-9e31-4545-b2d4-0bdff9c2362c%40apereo.org.


Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Raheem Shaik
Hi Andy,

Sorry, now i have corrected
'cas.spring.cloud.dynamoDb.preventTableCreationOnStartup'

cas.server.name: https://test.
cas.server.prefix: https://test./cas


logging.config: file:/etc/cas/config/log4j2.xml

cas.authn.accept.users=casuser::Mellon

cas.spring.cloud.dynamodb.credentialAccessKey=xx
cas.spring.cloud.dynamodb.credentialSecretKey=xxx
cas.spring.cloud.dynamodb.endpoint=http://localhost:8000
cas.spring.cloud.dynamodb.region=US_EAST_1

cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false

cas.spring.cloud.dynamoDb.readCapacity=10
cas.spring.cloud.dynamoDb.writeCapacity=10
cas.spring.cloud.dynamoDb.connectionTimeout=5000
cas.spring.cloud.dynamoDb.requestTimeout=5000
cas.spring.cloud.dynamoDb.socketTimeout=5000
cas.spring.cloud.dynamoDb.useGzip=false
cas.spring.cloud.dynamoDb.useReaper=false
cas.spring.cloud.dynamoDb.useThrottleRetries=false
cas.spring.cloud.dynamoDb.useTcpKeepAlive=false
cas.spring.cloud.dynamoDb.protocol=HTTPS
cas.spring.cloud.dynamoDb.clientExecutionTimeout=1
cas.spring.cloud.dynamoDb.cacheResponseMetadata=false
cas.spring.cloud.dynamoDb.maxConnections=10


2019-11-18 06:49:39,100 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- 
2019-11-18 06:49:39,174 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 06:49:40,610 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - 
java.lang.NullPointerException: null
at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 06:49:40,615 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 06:49:40,758 INFO [org.apereo.cas.web.CasWebApplication] - 
2019-11-18 06:49:40,871 INFO [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 06:49:40,881 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 06:49:42,359 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]
at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]
2019-11-18 06:49:42,359 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

2019-11-18 06:49:48,850 WARN [org.apereo.cas.web.CasWebApplicationContext]
- *
Regards,
Raheem Shaik

On Mon, Nov 18, 2019 at 12:15 PM Andy Ng  wrote:

> Hi Raheem,
>
> Something seems weird about this line:
>
> * Invalid property
> 'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]' *
>
> I think there should be only one [dynamoDB], and not two.
>
> Can you show us your newly updated cas.properties? See it is configured
> correctly.
>
> - Andy
>
> --
> - 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.
> 

Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Andy Ng
Hi Raheem,

Something seems weird about this line:

* Invalid property 
'spring[cloud][dynamoDb][dynamoDb][preventTableCreationOnStartup]' *

I think there should be only one [dynamoDB], and not two.

Can you show us your newly updated cas.properties? See it is configured 
correctly.

- Andy

-- 
- 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/41d1e40c-936e-419e-aa28-0cd71a61a6e2%40apereo.org.


Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Raheem Shaik
Hi Andy,

I have added
'cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false' to my
cas.properties but still getting error

2019-11-18 06:26:51,472 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- 
2019-11-18 06:26:51,534 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 06:26:52,964 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - 
java.lang.NullPointerException: null
at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 06:26:52,971 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 06:26:53,137 INFO [org.apereo.cas.web.CasWebApplication] - 
2019-11-18 06:26:53,237 INFO [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 06:26:53,248 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- 



*2019-11-18 06:26:54,764 DEBUG [com.amazonaws.http.IdleConnectionReaper] -
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]*
2019-11-18 06:26:54,764 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

*2019-11-18 06:27:01,203 WARN [org.apereo.cas.web.CasWebApplicationContext]
- *


Regards,
Raheem Shaik

On Mon, Nov 18, 2019 at 9:49 AM Andy Ng  wrote:

> Hi Raheem,
>
> Looking thought the source code, it seems that the there are a 
> *NullPointerException
> *happen
> https://github.com/apereo/cas/blob/v5.3.10/support/cas-server-support-configuration-cloud-dynamodb/src/main/java/org/apereo/cas/config/DynamoDbCloudConfigBootstrapConfiguration.java#L68
>
> Which seems to be *preventTableCreationOnStartup* property not being
> initialzied by default
>
> After Looking at the config:
> https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration
>
> Try adding (from this doc:
> https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration
> ):
> cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false
>
> See if this will fix the problem... If it does fix it, then maybe a fix
> should be made to address this issue.
>
> Cheers!
> - Andy
>
>
> --
> - 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/0d924eb9-5f62-4e2b-ab85-9cc5c2300e9c%40apereo.org
> 
> .
>

-- 






 

*Inmar Confidentiality 
Note*:  This e-mail and any attachments 

Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Andy Ng
Hi Raheem,

Looking thought the source code, it seems that the there are a 
*NullPointerException 
*happen 
https://github.com/apereo/cas/blob/v5.3.10/support/cas-server-support-configuration-cloud-dynamodb/src/main/java/org/apereo/cas/config/DynamoDbCloudConfigBootstrapConfiguration.java#L68

Which seems to be *preventTableCreationOnStartup* property not being 
initialzied by default

After Looking at the config:
https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration

Try adding (from this doc: 
https://apereo.github.io/cas/5.3.x/installation/Configuration-Properties-Common.html#dynamodb-configuration
):
cas.spring.cloud.dynamoDb.preventTableCreationOnStartup=false

See if this will fix the problem... If it does fix it, then maybe a fix 
should be made to address this issue.

Cheers!
- Andy


-- 
- 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/0d924eb9-5f62-4e2b-ab85-9cc5c2300e9c%40apereo.org.


Re: [cas-user] how to configure cas to load cas.properties from dynamo db

2019-11-17 Thread Raheem Shaik
Hi Ray,

We  are using CAS version 5.3.10 and followed the steps which you are
provided but i am getting below error

2019-11-18 03:54:31,865 INFO
[org.apereo.cas.configuration.DefaultCasConfigurationPropertiesSourceLocator]
- 
2019-11-18 03:54:31,929 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 03:54:33,442 ERROR
[org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration] - 
java.lang.NullPointerException: null
at
org.apereo.cas.config.DynamoDbCloudConfigBootstrapConfiguration.locate(DynamoDbCloudConfigBootstrapConfiguration.java:68)
~[cas-server-support-configuration-cloud-dynamodb-5.3.10.jar!/:5.3.10]
at
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:93)
~[spring-cloud-context-1.3.0.RELEASE.jar!/:1.3.0.RELEASE]
at
org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:567)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:338)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:301)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:134)
~[spring-boot-1.5.18.RELEASE.jar!/:1.5.18.RELEASE]
at
org.apereo.cas.web.CasWebApplication.main(CasWebApplication.java:71)
~[cas-server-webapp-init-5.3.10.jar!/:5.3.10]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
~[?:1.8.0_131]
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
~[?:1.8.0_131]
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
~[?:1.8.0_131]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
at
org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:87)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.Launcher.launch(Launcher.java:50)
~[cas.war:5.3.10]
at
org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59)
~[cas.war:5.3.10]
2019-11-18 03:54:33,447 INFO
[org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration]
- 
2019-11-18 03:54:33,613 INFO [org.apereo.cas.web.CasWebApplication] - 
2019-11-18 03:54:33,702 INFO [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 03:54:33,712 DEBUG [org.apereo.cas.web.CasWebApplicationContext]
- 
2019-11-18 03:54:35,307 DEBUG [com.amazonaws.http.IdleConnectionReaper] -

java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method) [?:1.8.0_131]
at
com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:181)
~[aws-java-sdk-core-1.11.332.jar!/:?]
2019-11-18 03:54:35,307 DEBUG [com.amazonaws.http.IdleConnectionReaper] -


*Cas.properties*:
cas.server.name: https://test.
cas.server.prefix: https://test./cas


logging.config: file:/etc/cas/config/log4j2.xml

cas.authn.accept.users=casuser::Mellon


cas.spring.cloud.dynamodb.credentialAccessKey= xx
cas.spring.cloud.dynamodb.credentialSecretKey= xx
cas.spring.cloud.dynamodb.endpoint=http://localhost:8000
#cas.spring.cloud.dynamodb.localAddress=
cas.spring.cloud.dynamodb.region=US_EAST_1
#cas.spring.cloud.dynamodb.regionOverride=

cas.spring.cloud.dynamoDb.readCapacity=10
cas.spring.cloud.dynamoDb.writeCapacity=10
cas.spring.cloud.dynamoDb.connectionTimeout=5000
cas.spring.cloud.dynamoDb.requestTimeout=5000
cas.spring.cloud.dynamoDb.socketTimeout=5000
cas.spring.cloud.dynamoDb.useGzip=false
cas.spring.cloud.dynamoDb.useReaper=false
cas.spring.cloud.dynamoDb.useThrottleRetries=false
cas.spring.cloud.dynamoDb.useTcpKeepAlive=false
cas.spring.cloud.dynamoDb.protocol=HTTPS
cas.spring.cloud.dynamoDb.clientExecutionTimeout=1
cas.spring.cloud.dynamoDb.cacheResponseMetadata=false
cas.spring.cloud.dynamoDb.maxConnections=10

cas.serviceRegistry.json.location=file:///etc/cas/services

I have added dependency in POM.XML


 org.apereo.cas
 cas-server-support-configuration-cloud-dynamodb
 ${cas.version}


Let me know if i need to add any other settings on cas.properties from my
end.

Regards,
Raheem Shaik

On Fri, Nov 15, 2019 at 4:53 AM Ray Bon  wrote:

> Raheem,
>
> This might help,
> https://apereo.github.io/cas/6.1.x/configuration/Configuration-Server-Management.html#dynamodb
>
> Ray
>
> On Thu, 2019-11-07 at 11:34 -0800, Raheem Shaik wrote:
>
> Any idea how we can configure cas to load cas.properties (hazelcast) from
> dynamodb
>
> 
>
>
>
> *Inmar Confidentiality Note*:  This e-mail and any attachments are
> confidential and intended to be viewed and used solely by 

[cas-user] Re: How to make CAS 6.1 work with Azure AD?

2019-11-17 Thread Andy Ng
Hi vallee.romain,

Would be the best if you can make it a separate post, since your question 
seems quite different then the one from OP.

Also, would be the best if you can elaborate on your question, what do you 
mean by "Jasig"? Are you asking 2 question or are those related? Some 
example given would be the best.

Cheers!
- Andy

-- 
- 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/36b34810-1adf-433c-b5cd-6b78c4cfc98c%40apereo.org.


Re: [cas-user] Application Not Authorized to Use CAS, After authentication.

2019-11-17 Thread mohamed gamal
Maybe this is what is causing your config not to work with us, we are using
version 6.1.0-RC4.

On Sun, Nov 17, 2019 at 2:33 PM Abdelrahman Halawa 
wrote:

> CAS v5.3.x
>
>
>
>
> On Sun, 17 Nov 2019 at 09:44, mohamed gamal 
> wrote:
>
>> Mr Abdelrahman, thanks for your support.
>> which version are you using ?
>>
>> --
>> - 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/d2798992-7c7e-469d-9283-6a2ba279aef1%40apereo.org
>> 
>> .
>>
>
>
> --
> Best regards,
> 
>
> ​
>
> *Abdelrahman Halawa*
> Teacher Assistant, Computer and Systems Department, Al-Azhar University
> +2 01008131693 <+2+01008131693> | abdelrahmanhal...@gmail.com | Skype:
> abdelrahmanhalawa  | Maadi, Cairo,
> Egypt
> 
> 
>
> --
> - 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 a topic in the
> Google Groups "CAS Community" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/apereo.org/d/topic/cas-user/PysooL5aXXs/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/CAHr-WtbVeSNdQa8i52iVKoUYeSGbfXS9xR%2BGsFDGcePtzrEMWw%40mail.gmail.com
> 
> .
>


-- 
Mohamed Ahmed Moursi
Computer Engineer.
Al-kharj, Saudi Arabia.
Mobile SA: +966555192325
Skype: live:b155f044caf1b8b6

-- 
- 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/CABB5vGfNvxi1anm%3DjxGYG_-iO1exgBdUg_PUzKuqxTqcjOVRpg%40mail.gmail.com.


Re: [cas-user] Application Not Authorized to Use CAS, After authentication.

2019-11-17 Thread Abdelrahman Halawa
CAS v5.3.x




On Sun, 17 Nov 2019 at 09:44, mohamed gamal 
wrote:

> Mr Abdelrahman, thanks for your support.
> which version are you using ?
>
> --
> - 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/d2798992-7c7e-469d-9283-6a2ba279aef1%40apereo.org
> 
> .
>


-- 
Best regards,


​

*Abdelrahman Halawa*
Teacher Assistant, Computer and Systems Department, Al-Azhar University
+2 01008131693 <+2+01008131693> | abdelrahmanhal...@gmail.com | Skype:
abdelrahmanhalawa  | Maadi, Cairo, Egypt



-- 
- 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/CAHr-WtbVeSNdQa8i52iVKoUYeSGbfXS9xR%2BGsFDGcePtzrEMWw%40mail.gmail.com.


[cas-user] Re: How to make CAS 6.1 work with Azure AD?

2019-11-17 Thread vallee.romain
Hello,
I'm taking advantage of this discussion to know if it's possible to 
retrieve attributes of a person on "Azure"?
Can we mix an authentication "AD" and "Azure"? I mean by that, if a person 
is not known on the "AD" that "Jasig" is looking for on AZURE.

Thank you very much.

Le vendredi 15 novembre 2019 12:10:48 UTC+1, Andy Ng a écrit :
>
> hi,
>
>
> https://apereo.github.io/cas/6.1.x/configuration/Configuration-Properties-Common.html#delegated-authentication-settings
>
> please try autoredirect=true for your azure config.
>
> -Andy
>
>

-- 
- 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/d68dad9c-5875-4ded-b0e5-654cde71662d%40apereo.org.