I am trying to integrate the delegated authentication via external Identity provider using SAML.
I am able to get the SAML login buttons on the login page. On clicking the button, I am redirected to the external IDP and receiving the SAML Response but the login is not successful.
One strange thing is that my request is not reaching DelegatedClientAuthenticationAction class.My config in application.yml file is:
authn:
pac4j:
saml[0]:
client-name: testOkta
keystore-password: pac4j-demo-passwd
private-key-password: pac4j-demo-passwd
service-provider-entity-id: https://login.testqc.cas.com
keystore-path: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOkta-samlKeystore.jks
metadata:
identity-provider-metadata-path: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOkta-idp-metadata.xml
service-provider:
file-system:
location: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOkta-sp-metadata.xml
saml[1]:
client-name: testOktaEncrypted
keystore-password: pac4j-demo-passwd
private-key-password: pac4j-demo-passwd
service-provider-entity-id: https://login.testqc.cas.com
keystore-path: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOktaEncrypted-samlKeystore.jks
metadata:
identity-provider-metadata-path: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOktaEncrypted-idp-metadata.xml
service-provider:
file-system:
location: file:/Users/prakash.thapa/work/certificates/CAS/saml/testOktaEncrypted-sp-metadata.xml