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

Errors found when auto_mapping is disabled and I didn't heed the instructions about mappings #695

Open
zyphlar opened this issue Jul 10, 2022 · 0 comments

Comments

@zyphlar
Copy link

zyphlar commented Jul 10, 2022

Just for posterity since I thought I was going crazy:

If you get errors like

Unrecognized field: randomId

for your /oauth/v2/auth page, or perhaps

{"error":"redirect_uri_mismatch","error_description":"The redirect URI provided does not match registered URI(s)."}

when you get past that error, the problem is that FOSOAuthServerBundle needs to be in the Doctrine mappings so that base model attributes are added to the database. (Obviously any database migrations also need to be created or applied as well so this data can be persisted.)

config.yml:

doctrine:
    orm:
        entity_managers:
            default:
                mappings:
                    FOSOAuthServerBundle: ~

Once again, reading the instructions pays off :)

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

No branches or pull requests

1 participant