- Implemented OAuth2 server with client registration, authorization, and token endpoints. - Created HTML templates for client authorization, client creation, and client editing. - Developed an OAuth2 client application using Hono.js and Bun, supporting authorization code grant flow. - Integrated PKCE (Proof Key for Code Exchange) for enhanced security during authorization. - Added session management using cookies for user authentication. - Included detailed README documentation for setup and usage instructions.
9 lines
230 B
Python
9 lines
230 B
Python
from website.app import create_app
|
|
|
|
|
|
app = create_app({
|
|
'SECRET_KEY': 'secret',
|
|
'OAUTH2_REFRESH_TOKEN_GENERATOR': True,
|
|
'SQLALCHEMY_TRACK_MODIFICATIONS': False,
|
|
'SQLALCHEMY_DATABASE_URI': 'sqlite:///db.sqlite',
|
|
})
|