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

Can't Parse idp.parseLoginRequest #545

Open
myevit opened this issue Jul 12, 2024 · 1 comment
Open

Can't Parse idp.parseLoginRequest #545

myevit opened this issue Jul 12, 2024 · 1 comment

Comments

@myevit
Copy link

myevit commented Jul 12, 2024

I am trying to parse SP SAMLrequest

app.post('/saml2/login', async (req, res) => {
    try {
        // console.log(req.body.SAMLRequest)
        const {requestData} = await idp.parseLoginRequest(sp, 'post', req );
        console.log(requestData)
        const user = { email: '[email protected]' };
        const { context, entityEndpoint } = await idp.createLoginResponse(sp, null, saml.Constants.wording.binding.post, user, createTemplateCallback(idp, sp, user.email));


        res.status(200).send({ samlResponse: context, entityEndpoint })
    } catch (e) {
        console.log(e)
        res.status(500).send()
    }
})

but requestData contain no data. I can't find no documentation on how to create SAMLresponce on SAMLrequest.

anyone can help?

@alifarooq-zk
Copy link

@tngan any update on this. i'm facing the same issue

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

2 participants