-
Notifications
You must be signed in to change notification settings - Fork 121
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
[feature/tokenauth-uidenforce] Enforce User ID when updating token-based bookmarks #869
Conversation
- Authentication: require username to stay the same when updating OAuth2 / OIDC bookmarks - SDK update to support this
|
@felix-schwarz For a while we talked about adding the username as parameter for the authentication web view, so that the username value is automatically set. |
@hosy Yeah, that could make sense as it is closely related. Last time we tried adding it for OC OAuth2, however, it crashed the web view (and curiously also Safari, when opening the URL there), hinting at a WebKit bug. So I'd skip that for OC OAuth2. For OIDC, however, it's certainly worth looking into. I'll check the RFC if there is a parameter we can send along. |
alertController.addAction(UIAlertAction(title: "Sign in".localized, style: .default, handler: { [weak self] (_) in | ||
completionHandler() | ||
|
||
var notifyAuthDelegate = true |
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.
@felix-schwarz reduce nesting with guard let
statements?
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.
Sorry, but I didn't find any opportunity to simplify the logic there with guard let
statements. Still could reduce nesting by unifying if
s that were nested unnecessarily.
QA checks
|
Approved on my side |
Description
This PR requires the user ID to remain the same when updating token-based bookmarks. If the user logs in as a user other than the one with which the bookmark was originally created, an error will be presented.
Related Issue
Screenshots (if appropriate):
Types of changes