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

Is using Doctrine ODM possible ? #103

Open
etshy opened this issue Sep 29, 2022 · 7 comments
Open

Is using Doctrine ODM possible ? #103

etshy opened this issue Sep 29, 2022 · 7 comments

Comments

@etshy
Copy link

etshy commented Sep 29, 2022

I only saw ORM references to store token but I prefer ask in case I missed something.
There is currently no way to use Doctrine ODM right ?
I didn't see any way to make my own persitence either.

@chalasr
Copy link
Member

chalasr commented Oct 20, 2022

Indeed. I won't work on this myself, but I would welcome a PR adding support for the ODM.

@etshy
Copy link
Author

etshy commented Oct 20, 2022

I won't garantee I'll do it but I'll take a look. (I started to make my own implementation of oauth2-server for my current project though)

@imdhemy
Copy link

imdhemy commented Oct 21, 2022

I accidentally deleted my previous comment.


@etshy

What do you think about using:

For Tokens

For clients

  • Implement them in an ordinary way
  • Set up filters to validate and authenticate clients.

@etshy
Copy link
Author

etshy commented Oct 24, 2022

@imdhemy You mean for my implementation ?
I already choose to use Lexik bundle to create the token, and add data to it.
I didn't know about the RefreshTokenBundle though, thanks a lot.

@spiider8
Copy link

I won't garantee I'll do it but I'll take a look. (I started to make my own implementation of oauth2-server for my current project though)

Hi, is there something new in support ODM please? thanks

@etshy
Copy link
Author

etshy commented May 24, 2023

Hi. No sorry I put the project I planned to make a oauthserver for on hold so I didn't do anything about it yet.

@etshy
Copy link
Author

etshy commented Jul 3, 2023

I quickly took a look at this tonight and as a complete newbie with Bundle, I'm a bit lost.
Should I add both ORM and ODM compilerPass or should I move that to the prepend to be able to load only one base on the Configuration ? I made some few tests but adding CompilerPass in the prepend doesn't seem to be working at all though.

So I guess I should load both and in the configureDoctrinePersistence I replace argument by entityManager or documentManager depending on the Configuration.

Another thing, Should I rework the Driver to replace it by files Mapping (XML ?) ? I saw in the DoctrineOrmMappingsPass that "You should not directly instantiate this class but use one of the factory methods."

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

4 participants