Skip to content
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

[BUG] Converting anonymous account with OAuth2 #30

Open
TorstenDittmann opened this issue Aug 11, 2021 · 0 comments
Open

[BUG] Converting anonymous account with OAuth2 #30

TorstenDittmann opened this issue Aug 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@TorstenDittmann
Copy link
Contributor

When initializing an OAuth2 session, the cookie that would indicates migrating an anonymous account to a full account gets lost in the WebView.

I think one of the possible solution at the moment (that will also work for other clients including Android (kotlin), iOS (swift), as I think Android will have similar problem at the moment)

  1. in the createOAuth2Session endpoint we will receive the cookie from the client,
  2. using that cookie Appwrite will generate some token that will identify the currently active session/user and passing that token around during redirection
  3. so when finally redirected to create actual session, Appwrite can use that token to identify the active session if any

Or similar thing might be done, instead of passing token around during redirection, saving some details temporarily in the DB/or somewhere, that can be used to identify the request and session to make the decision
We will have more research and possible solution around it.

@TorstenDittmann TorstenDittmann changed the title [BUG] Converting anonymous account with OAuth 2 [BUG] Converting anonymous account with OAuth2 Aug 11, 2021
@lohanidamodar lohanidamodar added the bug Something isn't working label Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants