-
Notifications
You must be signed in to change notification settings - Fork 142
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
Implement OpenID add/remove accounts in identity management #2762
Conversation
# Conflicts: # src/frontend/src/utils/iiConnection.ts # src/frontend/src/utils/mockOpenID.ts
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.
Thanks! Could you also provide some screenshots?
A few comments and questions. I like where this is going!
@@ -433,7 +433,7 @@ xr-spatial-tracking=()", | |||
let rgx = Regex::new( | |||
"^default-src 'none';\ | |||
connect-src 'self' https:;\ | |||
img-src 'self' data:;\ | |||
img-src 'self' data: https://\\*.googleusercontent.com;\ |
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.
Is this to be able to show the image from the google account?
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.
Yes exactly, currently the CSP only allowed images from it's own canister and data uris. I considered fetching the image and storing it as datauri instead but that would add quite some complexity and prevent it from showing the latest image if the user changes their profile image.
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.
Yes, this is fine. Maybe check with security by sending them a message, but it't not blocking this PR.
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.
Thanks! A couple more comments but already approving!
Implement OpenID add/remove accounts in identity management
Changes
OPENID_AUTHENTICATION
feature flagII_OPENID_GOOGLE_CLIENT_ID
environment variablehasOtherAuthMethods
to allow removal of all passkeys/credentials if one still has credentials/keys., since a user only needs to have at least 1 passkey or linked account.🟢 Some screens were added
🟡 Some screens were changed