Beartropy SAML2

Artisan Setup
Configure SAML2 entirely via the command line without using the web wizard.

1. Configure .env

Add the basic configuration to your .env file:

1# Your app's Entity ID
2SAML2_SP_ENTITY_ID=https://your-app.com
3 
4# Redirects
5SAML2_LOGIN_REDIRECT=/dashboard
6SAML2_LOGOUT_REDIRECT=/

2. Generate SP Certificates (Recommended)

Generate certificates for signing SAML requests:

1php artisan saml2:generate-cert

3. Create IDP

Create an IDP from a metadata URL or interactively:

1# Create IDP from metadata URL
2php artisan saml2:create-idp azure --from-url=https://login.microsoftonline.com/{tenant}/federationmetadata.xml
3 
4# Create IDP interactively
5php artisan saml2:create-idp azure --interactive

4. Verify Configuration

List all configured IDPs:

1php artisan saml2:list-idps

5. Test IDP

Test the IDP configuration:

1php artisan saml2:test-idp azure

Resetting Setup

If you need to re-run the setup wizard:

1# Reset setup state only (keeps IDPs)
2php artisan saml2:reset-setup
3 
4# Reset setup state AND delete all IDPs
5php artisan saml2:reset-setup --with-idps
Beartropy Logo

© 2026 Beartropy. All rights reserved.

Provided as-is, without warranty. Use at your own risk.