Route method not allowed on saml/acs post #1548

Closed
opened 2026-02-05 01:12:04 +03:00 by OVERLORD · 4 comments
Owner

Originally created by @Jazb on GitHub (Feb 19, 2020).

Originally assigned to: @ssddanbrown on GitHub.

When the request from SAML Google provider pass to saml/acs endpint, I am received an error with The POST method is not supported for this route. Supported methods: GET, HEAD. Found on Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException.

The instance of bookstack has been updated from old version follow the instructions of documentation.

I am executed follow commands:

git pull origin release && composer install && php artisan migrate
php artisan cache:clear && php artisan config:clear && php artisan view:clear
php artisan bookstack:regenerate-permissions
php artisan bookstack:regenerate-search
php artisan optimize:clear

chown $user: -R . # To fix perm

At list the route from artisa, saml/acs allowed post:

php artisan route:list | grep saml

Originally created by @Jazb on GitHub (Feb 19, 2020). Originally assigned to: @ssddanbrown on GitHub. When the request from SAML Google provider pass to saml/acs endpint, I am received an error with The POST method is not supported for this route. Supported methods: GET, HEAD. Found on Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException. The instance of bookstack has been updated from old version follow the instructions of documentation. I am executed follow commands: git pull origin release && composer install && php artisan migrate php artisan cache:clear && php artisan config:clear && php artisan view:clear php artisan bookstack:regenerate-permissions php artisan bookstack:regenerate-search php artisan optimize:clear chown $user: -R . # To fix perm At list the route from artisa, saml/acs allowed post: php artisan route:list | grep saml
OVERLORD added the 📖 Docs Update label 2026-02-05 01:12:04 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Feb 19, 2020):

Hi @Jazb,

My guess is that google is not redirecting you to the correct endpoint.
Are you familiar with using browser developer tools at all?

If so, you could open the "Network" tab and ensure the redirect from Google is sending you to the correct endpoint with the correct method.

Also, Just to be sure, Are you using /saml2/acs? since your post states /saml/acs...

@ssddanbrown commented on GitHub (Feb 19, 2020): Hi @Jazb, My guess is that google is not redirecting you to the correct endpoint. Are you familiar with using browser developer tools at all? If so, you could open the "Network" tab and ensure the redirect from Google is sending you to the correct endpoint with the correct method. Also, Just to be sure, Are you using `/saml2/acs`? since your post states `/saml/acs`...
Author
Owner

@Jazb commented on GitHub (Feb 20, 2020):

Here I attached the error, I saw through the network that the post is correct goes to the appropriate endpoint and in addition to this in the log of the nginx it looks like the same path is correct.

https://flareapp.io/share/xmN0xb70

This is the error itself, any other possibility that I can explore?

@Jazb commented on GitHub (Feb 20, 2020): Here I attached the error, I saw through the network that the post is correct goes to the appropriate endpoint and in addition to this in the log of the nginx it looks like the same path is correct. https://flareapp.io/share/xmN0xb70 This is the error itself, any other possibility that I can explore?
Author
Owner

@ssddanbrown commented on GitHub (Feb 20, 2020):

Hi @Jazb,
Apologies for this, It looks like I've mis-typed this in the documentation.
The endpoint should be /saml2/acs instead of /saml2/asc.

I've labelled this to remind myself to update the docs when I next can do so.

@ssddanbrown commented on GitHub (Feb 20, 2020): Hi @Jazb, Apologies for this, It looks like I've mis-typed this in the documentation. The endpoint should be `/saml2/acs` instead of `/saml2/asc`. I've labelled this to remind myself to update the docs when I next can do so.
Author
Owner

@ssddanbrown commented on GitHub (Feb 21, 2020):

Docs now updated so I'll close this. If you continue to have issues feel free to open a new issue referencing this one.

@ssddanbrown commented on GitHub (Feb 21, 2020): [Docs now updated](https://www.bookstackapp.com/docs/admin/saml2-auth/) so I'll close this. If you continue to have issues feel free to open a new issue referencing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1548