Hi mohamed,

Please try this whether can help to solve your problem.

1. Enable the service registry module in CAS /etc/cas/config/cas.properties
cas.serviceRegistry.initFromJson=false
cas.serviceRegistry.json.location:file:/etc/cas/services

2. Place the enabled services file under /etc/cas/services

File name: HTTPSandIMAPS-10000001.json

Json content sample which only allows https and imaps call:
{
  "@class": "org.apereo.cas.services.RegexRegisteredService",
  "serviceId": "^(https|imaps)://.*",
  "name": "HTTPS and IMAPS",
  "id": 10000001,
  "description": "This service definition authorizes all application urls
that support HTTPS and IMAPS protocols.",
  "evaluationOrder": 10000
}


Regards, Steve







On Sun, Nov 10, 2019 at 2:36 AM mohamed gamal <[email protected]>
wrote:

> Hello everyone,
> I am trying to integrate cas with  a share point application using WS-FED
> I added the service file and the application connects normally to cas. the
> app redirects the user to cas for authentication, the user is authenticated
> by cas and I can see in logs that the user is authenticated and everything
> looks fine. But after the authentication the user is shown a message
> "Application Not Authorized to Use CAS". I am using the git service
> registry could this be the problem ? any idea how to solve this ?
> kindest 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/a/apereo.org/d/msgid/cas-user/8b7414a7-b714-400d-a1ea-16ee001b7f56%40apereo.org
> <https://groups.google.com/a/apereo.org/d/msgid/cas-user/8b7414a7-b714-400d-a1ea-16ee001b7f56%40apereo.org?utm_medium=email&utm_source=footer>
> .
>

-- 
- 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAD8DNGJsk_VtWHEk56w8p7v1n6HzoA9XS82fOH70ZcGsCOZRMg%40mail.gmail.com.

Reply via email to