IDP create in laravel using Simple SAML php - Stack Overflow

I am facing a problem with routing and authentication.I referred to this document:.htmlI copied simp

I am facing a problem with routing and authentication.

I referred to this document:
.html

I copied simplesamlphp inside my public folder. I also configured the public\simplesamlphp\config\config.php file

When I try this login URL it gives me a 404:

public/simplesamlphp/module.php/saml/idp/sso.php

I set this route for accessing the login page:

Route::get('/saml/login1', function () {
    // echo "SDf";
    return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});

Route::get('/saml/logout', function () {
    return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});

I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?

I am facing a problem with routing and authentication.

I referred to this document:
https://simplesamlphp./docs/stable/simplesamlphp-idp.html

I copied simplesamlphp inside my public folder. I also configured the public\simplesamlphp\config\config.php file

When I try this login URL it gives me a 404:

public/simplesamlphp/module.php/saml/idp/sso.php

I set this route for accessing the login page:

Route::get('/saml/login1', function () {
    // echo "SDf";
    return Redirect::to('/public/simplesamlphp/module.php/core/authenticate.php?as=laravel');
});

Route::get('/saml/logout', function () {
    return Redirect::to('/public/simplesamlphp/module.php/core/logout.php');
});

I am unable to find clear documentation for simplesamlphp and laravel, can anyone help?

Share Improve this question edited Mar 12 at 13:16 ADyson 62.2k16 gold badges79 silver badges92 bronze badges Recognized by PHP Collective asked Mar 12 at 12:46 Kaushal PatelKaushal Patel 2892 silver badges8 bronze badges 2
  • Why does it need to be "in Laravel" to begin with? SSP IdP runs as a standalone webapp. – grawity_u1686 Commented Mar 12 at 15:45
  • @grawity_u1686 Because I already have a Laravel project for 2 years and for this I have to do SSo for already registered users. – Kaushal Patel Commented Mar 18 at 4:35
Add a comment  | 

1 Answer 1

Reset to default 0

I believe simplesamlphp is meant for native php, and there's no direct documentation for laravel integration. What you can do is to find laravel compatible saml authentication library.

I think you can use this library if you want your laravel app to act as the IDP.

https://github/codegreencreative/laravel-samlidp

If you want your laravel app to act as the SP, then this library should work.

https://github/24Slides/laravel-saml2

I personally have used laravel-saml2 for microsoft Azure AD integration, and it works well, but I haven't tried the laravel-samlidp yet.

Regards,

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744751969a4591652.html

相关推荐

  • IDP create in laravel using Simple SAML php - Stack Overflow

    I am facing a problem with routing and authentication.I referred to this document:.htmlI copied simp

    20小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信