I think i have figure out the problem.
the other service json file is too generic:
{
"@class" : "org.apereo.cas.services.RegexRegisteredService",
"serviceId" : ".*",
"name" : "booking",
"id" : 1
}
This will override saml sp json file.
cheekian yap 在 2020年12月22日 星期二上午11:20:51 [UTC+8] 的信中寫道:
> I managed to get my saml sp registered on service registry. The scenario
> is:
>
> Originally I have 2 json file in my classpath:/services. One of the them
> is saml sp. Somehow when I removed the other one, saml sp was able to be
> registered.
>
> So my question become how to add 2 services simultaneously to service
> registry?
>
> cheekian yap 在 2020年12月22日 星期二上午9:49:44 [UTC+8] 的信中寫道:
>
>> Hi,
>>
>> Cas version 6.2.6
>>
>> I got this error message when being redirected from sp site to cas:
>>
>> WARN
>> [org.apereo.cas.support.saml.web.idp.profile.AbstractSamlIdPProfileHandlerController]
>>
>> - <[http://xx.xx.xx.xx] is not found in the registry or service access
>> is denied. Ensure service is registered in service registry>
>>
>> Below is my cas configuration:
>> cas.service-registry.json.location=classpath:/services
>> cas.authn.saml-idp.entity-id=https://xx.xx.xx.xx:8443/cas/idp/metadata
>> cas.authn.saml-idp.metadata.location=file:/etc/cas/saml
>>
>> inside classpath:/services:
>> {
>> "@class" : "org.apereo.cas.support.saml.services.SamlRegisteredService",
>> "serviceId" : "http://xx.xx.xx.xx",
>> "name" : "SAMLService",
>> "id" : 2,
>> "description" : "xxxx",
>> "metadataLocation" : "
>> http://xx.xx.xx.xx/simplesaml/module.php/saml/sp/metadata.php/default-sp"
>> }
>>
>> Why I was denied access when I have registered my service?
>>
>>
--
- 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/a2bc2f3b-fd5c-44d4-8222-0fd2f0ca0844n%40apereo.org.