Comments (21)
You were completely right, joeconwaystk. I have just override AuthServerDelegate for my needs and it was pretty easy! You have done a great job! Thank you very much!
from aqueduct.
You were completely right, joeconwaystk. I have just override AuthServerDelegate for my needs and it was pretty easy! You have done a great job! Thank you very much!
@MoacirSchmidt , could you share a solution for MySQL.
The problem is that I do not have the proper experience and deep knowledge in DART
from aqueduct.
@maurobotta No. Except if someone decides to make a pull request with it.
from aqueduct.
@maurobotta The problem is that there are 0 teat in this pull request + there are a few existing tests that fail.
from aqueduct.
To add support for another database, PersistentStore must be implemented. MySQL would likely be relatively straightforward, as it would be really similar to the Postgres implementation. There are a few places where things got tangled - specifically with DB migration and tests - where we would have to make some changes. The long term goal is to support other DBs as packages outside of Aqueduct.
from aqueduct.
@joeconwaystk
Sounds like the proper way to do it might be to introduce an actual dialects class, so that the PeristentStore and the Migration can both use them ?
I remember Hibernate and NHibernate had dialects as first class objects.
its a long list, since Hibernate has been around for ever: https://docs.jboss.org/hibernate/orm/3.5/api/org/hibernate/dialect/package-summary.html
from aqueduct.
Not having a lot of experience with Hibernate, it looks like dialects are doing translations a lot closer to the syntax, whereas the goal for persistent store is to do those translations by behavior. Not saying that is going to work long-term, but that is the goal.
from aqueduct.
i used NHibernate for years.
https://github.com/nhibernate/nhibernate-core/tree/master/src/NHibernate/Dialect
If you even want a source of already worked out dialects, that i think might be the best source.
Just saying..
Shall we leave this open ?
from aqueduct.
Aqueduct seems really interesting, and I'd very much consider using it for our stack, but we use MySQL, so this is preventing us.
from aqueduct.
You can use any of the Dart MySQL drivers with Aqueduct, you just can't use the ORM features like Query and ManagedObject. Same goes for MongoDB or any other database.
from aqueduct.
This isn't accurate. The types AuthServer
, AuthController
, AuthRedirectController
, AuthToken
, AuthClient
, Authorizer
and Authorization
have no dependency or even relationship with PostgreSQL or the ORM.
The abstract interface AuthDelegate
is overridden for storage/retrieval for auth-related tasks. There is one provided implementation that uses the ORM (and therefore PostgreSQL). You can provide your own implementation for that one type, and still use all of the classes above without any changes.
from aqueduct.
I would really like to extend the AuthDelegate interface (or another ones) to use MySQL. Could you please guide me to some documentation or source code to achieve that?
from aqueduct.
Override this class in the docs, and pass instance of it to your AuthServer constructor:
https://pub.dartlang.org/documentation/aqueduct/latest/aqueduct/AuthServerDelegate-class.html
from aqueduct.
And What about the Google and facebook integrated login. Is aqueduct ready for that?
from aqueduct.
Yes and no. There won't be any full integrations for a particular identity provider. You can attach data to an Authorization object or request that comes from another identity provider, and you can use client packages on pub for a particular identity provider to get that data. I don't think the framework should set a standard on how you integrate with those types of identity providers.
from aqueduct.
I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!
Unfortunately I was unable to solve a little issue: Is there a way for me to pass a parameter to getResourceOwner in order to identify the user throughout several different applications (but same database)?
from aqueduct.
I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!
Would you like to share with us?
I'm using MSSQL Server as well. Thanks
from aqueduct.
I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!
Would you like to share with us?
I'm using MSSQL Server as well. Thanks
+1
from aqueduct.
I overrided AuthServerDelegate to support Microsoft SQL Server databases. It is working pretty well!
Would you like to share with us?
I'm using MSSQL Server as well. Thanks+1
+1
from aqueduct.
New 4.0 version will support mysql ?
from aqueduct.
This
#880
from aqueduct.
Related Issues (20)
- How to use ORM without http server HOT 1
- starting from existing db HOT 2
- Getting Socket exception after restarting the aqueduct app HOT 4
- Problems with aqueduct commands after flutter upgrade HOT 12
- How to install aqueduct on macOS? HOT 4
- How to I change aqueduct serve default port? HOT 5
- How can I create a push notification with aqueduct? HOT 2
- Unable to create project. HOT 1
- aqueduct db upgrade gives range error : Invalid value: Not in inclusive range 0..1114111: -1 HOT 2
- I think aqueduct need provide object transfer method like the AutoMapper
- [Feature request !!] any plans to return html templates instead of json ? HOT 1
- Dart 2.12 and new features HOT 1
- Use multiple query condition after join
- Dependency issues, new versions of googleapis are no longer compatible
- null-safety error on commands HOT 3
- Feature-Request: Replace mirrors with reflectable
- Here's how to fix your Heroku app (SSL) HOT 2
- Annotation @ManagedTableAttributes: Is not working. HOT 1
- Is this project no longer maintained
- Do you consider adding such a plug-in, please see the link below!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aqueduct.