-
Notifications
You must be signed in to change notification settings - Fork 4
feature/admin-location-ms-access #343
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,6 +107,7 @@ def init_lexicon(path: str = None) -> None: | |
|
|
||
|
|
||
| def register_routes(app): | ||
| from admin.auth_routes import router as admin_auth_router | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The new Useful? React with 👍 / 👎. |
||
| from api.group import router as group_router | ||
| from api.contact import router as contact_router | ||
| from api.location import router as location_router | ||
|
|
@@ -126,6 +127,7 @@ def register_routes(app): | |
| from api.ngwmn import router as ngwmn_router | ||
|
|
||
| app.include_router(asset_router) | ||
| app.include_router(admin_auth_router) | ||
| app.include_router(author_router) | ||
| app.include_router(contact_router) | ||
| app.include_router(geospatial_router) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The login flow now calls
request.url_for("admin_auth_callback"), but there is no route with that name defined anywhere in the codebase (the only match is this line). Starlette raisesNoMatchwhenurl_fortargets an unknown route, so any admin login attempt will error before redirecting to Authentik unless a matching callback route is added.Useful? React with 👍 / 👎.