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

How to sign into web pages that require credentials? #10

Closed
curzel-it opened this issue Feb 3, 2020 · 7 comments
Closed

How to sign into web pages that require credentials? #10

curzel-it opened this issue Feb 3, 2020 · 7 comments
Labels
enhancement New feature or request

Comments

@curzel-it
Copy link

Say I want to set my wallpaper as a web page that requires credentials (eg. Google Keep or Trello).
Is there any way I can interact with the desktop to login?

@rocksdanister
Copy link
Owner

rocksdanister commented Feb 3, 2020

Cef is set to use memory as cache... so when you restart browser the login & other cookie data disappears.
It is possible to use disk cache, I did experiment it for the deviantart downloader: https://github.com/rocksdanister/lively-cef/blob/3ed24b298ac876035e1a383809dc0d6eeb4b1b9e/src/cefsharptest/Form1.cs#L303
Not sure If i should provide a toggle for it, safety concerns and all that.

I'm working on an input system through lively for interaction, you can see a working demo on the subreddit: https://www.reddit.com/r/LivelyWallpaper/comments/ew5e3e/preview_web_wallpaper_input_test_3_rain/
this ui is programmable, more details will be provided on the wiki once released: https://github.com/rocksdanister/lively/wiki/Web-Guide-IV-:-Interaction

@curzel-it
Copy link
Author

curzel-it commented Feb 3, 2020

Not sure If i should provide a toggle for it, safety concerns and all that.

Maybe on a per-wallpaper basis, what do you think?

https://www.reddit.com/r/LivelyWallpaper/comments/ew5e3e/preview_web_wallpaper_input_test_3_rain/

Amazing!

@rocksdanister
Copy link
Owner

I think il add an optional flag in the LivelyInfo.json file after next update, no gui.

@rocksdanister rocksdanister added the enhancement New feature or request label Feb 19, 2020
@rocksdanister
Copy link
Owner

rocksdanister commented Mar 22, 2020

Mouse interaction is coming next update #30

@rocksdanister
Copy link
Owner

rocksdanister commented Mar 31, 2020

I'm working on keyboard input: #35
& there will be a setting in Lively(global) to enable disk cache for cef.

Will take time as I'm currently refactoring the code.

@rocksdanister
Copy link
Owner

rocksdanister commented Sep 9, 2020

Recently added a preview mode with full input support:
https://github.com/rocksdanister/lively/releases/tag/v1.0.7.0
Since its just a separate window in-focus run temporarily, safety is not a problem.
Now only left to enable the disk cache mode in cef so that login persists.

@rocksdanister rocksdanister changed the title Can I interact with the desktop? How to sign into web pages that require credentials? Sep 21, 2020
@rocksdanister
Copy link
Owner

rocksdanister commented Sep 21, 2020

Its possible now:

  1. Enable Disk cache so that cookie and login settings gets restored next time browser is started.
  2. Open the wallpaper that require input in Preview mode.
  3. Enter the credentials and select "Keep me Logged in" or similar option, login to the service.
  4. Close preview and now just set the wallpaper normally.

Note:

  • Cachepath is separate depending on the selected screen, so for example if first screen is selected in lively control panel then cache folder will be for that screen only.
  • Disk cache will be only enabled for online type wallpapers.
  • Cache location is: C:\Users\<UserName>\AppData\Local\Lively Wallpaper\Cef

This is safe as the input is only forwarded when the preview window is in focus, you can keep track of the keyboard interaction for wallpaper in separate issue: #35

disk cache

Screenshot 2020-09-21 182701

preview

Repository owner locked as resolved and limited conversation to collaborators Dec 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants