Cyclic dependencies when using AuthorizationServer(Client, app)
See original GitHub issueAt least in my case, when creating an AuthorizationServer, it requires the Client model. This has the requirement that the models be imported. However, since the models themselves also import __init__.py
through from .. import db, login_manager
, it creates a cyclic include.
Due to this constraint, the next best option is to use flask-oauthlib library. It might make sense to address this issue, either in the documentation or in the code architecturally.
Issue Analytics
- State:
- Created 6 years ago
- Comments:16 (10 by maintainers)
Top Results From Across the Web
oauth2 - Circular dependency in microservices architecture for ...
(D) The authorization server authenticates the client and validates the authorization grant, and if valid, issues an access token.
Read more >The vicious cycle of circular dependencies in microservices
Ideally, a microservices application shouldn't contain circular dependencies. This means that one service should not call another one directly.
Read more >Spring Security circular bean dependency - Stack Overflow
I'm currently working on a Vaadin spring application. According to the app specifications, authentication/authorization of the ...
Read more >Circular Dependencies in Spring - Baeldung
A quick writeup on dealing with circular dependencies in Spring: how they occur and several ways to work around them.
Read more >NG0200: Circular dependency in DI detected while ... - Angular
Use the call stack to determine where the cyclical dependency exists. You will be able to see if any child dependencies rely on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@moritz89 @iabtyagi I’ve written a post on folder structure: https://lepture.com/en/2018/structure-of-a-flask-project
Actually authlib playground has a better folder structure, you can learn something from it.