Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login does not work but produces 404 error #157

Open
carsten-wilhelm opened this issue Jun 10, 2024 · 2 comments
Open

Login does not work but produces 404 error #157

carsten-wilhelm opened this issue Jun 10, 2024 · 2 comments

Comments

@carsten-wilhelm
Copy link

We included the extension in TYPO3 V11 - the login button works and shows the OpenID login screen.
After logging in, we end up on the redirect page (the login page) and the URL contains a code and a state.

Debugging showed that the type 1489657462 was added to the query params of the request in the OauthCallback::process method. But the AuthenticationController (which is assigned to the type) does not get called.

We included the Typoscript and the type is showing up in backend template analyzer as well.

Any idea why we do not get a proper login page?

@carsten-wilhelm
Copy link
Author

carsten-wilhelm commented Jun 10, 2024

Found the issue - I had to add this to my config:

$GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'] = array_merge(
    $GLOBALS['TYPO3_CONF_VARS']['FE']['cacheHash']['excludedParameters'],
    [
        'code', 'state', 'sfdc_community_url', 'sfdc_community_id'
    ]
);

@liayn
Copy link
Collaborator

liayn commented Jun 15, 2024

Interesting finding.

Nevertheless, the latest master-version does not have the controller anymore and does all the stuff directly in the middleware. This should probably resolve this issue "auto-magically".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants