Problem/Motivation
When attempting the authentication workflow providing user credentials. The system redirects the user to a auth end point which appends a language prefix to the auth path. This causes a 404 error and the auth attempt fails.
Steps to reproduce
Try to login with correct credentials.
Testing on a system with a default configuration without internationalization installed this will always fail. As no multilingual settings are provided in this case.
I happen to be working on a multilingual build and even with this enabled the auth path fails as well.
Reviewing the code there is no processing or handling business logic detecting or processing language prefixes in the route file for the module.
Proposed resolution
a) suppress the prefix.
b) extend the classes to detect and process the prefixes and properly pass it along to the end point of the authentication service.
I've attached a patch with suppresses it.
| Comment | File | Size | Author |
|---|---|---|---|
| 2024-08-05-azure_oauth_sso-endpoint-fix.patch | 967 bytes | emptyvoid |
Issue fork azure_oauth_sso-3467895
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3467895-login-auth-path
compare
Comments
Comment #2
mahdiwadi commentedI've fixed the patch and successfully applied it. The issues have been resolved.
Comment #3
mahdiwadi commentedComment #4
mahdiwadi commentedComment #5
mahdiwadi commentedComment #6
mahdiwadi commentedComment #7
mahdiwadi commented