First, you need to register a new service (client) in CAS, if not already registered.
This registration will identify your application (the SAMO Authentication Server) as a valid CAS service.
You must add redirect URL to the list of allowed/authorized URLs in your CAS service configuration. Otherwise, CAS will reject the authentication response.
Many times, only the general origin is required, so the value should be just url of the root context of samo authentication server.
If exact url is needed, the value is {$samo-auth-server-url}/auth/cas/authorize-client/{id}, where id is the custom identificator from you metadata (name of your metadat file), not the client id generated by provider.