Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error processing SAML response: 'Config' object has no attribute 'correctly_signed_response' #971

Open
glaucius opened this issue Sep 20, 2024 · 0 comments

Comments

@glaucius
Copy link

Hello all, please, need help with the config for saml2, I'm receiving this error, and have no idea how to add this attribute.

Error processing SAML response: 'Config' object has no attribute 'correctly_signed_response'

My saml config

def parse_authn_response(self, saml_response):
    # Load the IdP configuration and parse the SAML response
    saml_settings = {
        'metadata': {
            'remote': [{
                'url': OKTA_URL_METADATA,
                'cert': MY_CERT,
            }],
        },
        'service': {
            'sp': {
                'endpoints': {
                    'assertion_consumer_service': [(self.get_acs_url(), BINDING_HTTP_POST)],
                },
                'allow_unsolicited': True,
                'name_id_format': 'urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress',
            },
        },
    }

    config = Saml2Config()
    config.load(saml_settings)

    # Parse the response
    authn_response = AuthnResponse(config, saml_response, entity_id=sp.get_entity_id(), binding=BINDING_HTTP_POST)

Does anyone know what and how I can fix it ??

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant