24Slides / laravel-saml2

[Laravel 5.4+] An integration to add SSO to your service via SAML2 protocol based on OneLogin toolkit with support of multiple Identity Providers
MIT License
232 stars 69 forks source link

AADSTS700016: Application with identifier '....' was not found in the directory '...'. #80

Closed RosiersRobin closed 9 months ago

RosiersRobin commented 10 months ago

I'm having trouble here.

When I setup the SSO using the Microsoft Entrada admin center in the enterprise app "Microsoft Entra SAML Toolkit", I can follow all of their setup instructions to access their test website for saml. That works as intended.

Now I have a laravel app, that needs to allow tenants to access our app using the SAML SSO from microsoft.

this is what I entered in the command:

image

Then I get this: image

So I then head back to the Basic SAML configuration in Microsoft entrea admin center and modify the settings like so:

image

At this point I filled in the inputs with the given data from the package.

When I go to the login URL: https://b83d-[uuid].ngrok-free.app/saml/[UUID]/login

I redirect to the microsoft login page, which is really good, but then I login with my account and I see the following error:

image

Anyone who has an idea what I can do here to resolve this issue? I need to have this working asap, to have users be able to login into our application..

Thanks in advance!

vinicioslimer commented 9 months ago

I am facing this problem too. I haven't found any solution yet. You did it?

skydudie commented 9 months ago

Hey @RosiersRobin have you added the user you are trying to sign in with to the application that you created in Entra? image

bonge-ian commented 7 months ago

Hello @RosiersRobin

Did you manage to solve this?

If so how did you go about it?

fadedhero commented 3 months ago

problem is that the default routes used in saml2.php redirect to http instead of https. The only solution I found yet is to overwrite the "entityId", "assertionConsumerService" and "singleLogoutService" with https routes