-
Notifications
You must be signed in to change notification settings - Fork 157
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
Introduce meta authContext #7875
Conversation
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.
Haven't tested and would be better with https://dev.to/ayc0/typescript-49-satisfies-operator-1e4i but alas ... better than before!
I especially like the very useful runtime/deprecation warnings!
When this is merged, please add an entry here: #7338 Might be worth pinning that issue... |
It was pinned when I created it in the first place (see screenshot)... thanks for re-pinning. And yes, of course, the deprecation info needs to go into the ticket. :-) |
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.
Does what is really necessary for now (even if the presentation is inconsistent: see my comment in the original issue).
785eedc
to
8621d05
Compare
@dschmidt I re-requested your review, because I added a substantial amount of code... added |
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.
Codewise the PR seems completely fine to me, I'm just not so enthusiastic about exposing the pageLayout
setting. Especially the loading layout seems a bit weird, but then again it's probably not harmful
You're right, I didn't remember our decision to force all apps into the |
Introduce meta.authContext to define which kind of context is required on a route. This gets evaluated for target routes and (if present) context routes. The old meta.auth boolean has been deprecated. For now it gets transformed into the respective meta.authContext value.
All routes in the web mono repo now have a meta.authContext defined.
2e5256f
to
b27bc11
Compare
Updated the PR to not expose/use the |
SonarCloud Quality Gate failed. |
Description
This PR introduces a
meta.authContext
prop on routes so that we give fine grained control to extension developers which kind of auth context they want to require from ownCloud Web.Related Issue
Types of changes
Checklist: