Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Confusion and question about providing authenticated session via "user_data_dir" #73

@ashishjullia

Description

@ashishjullia

I think I understood the points mentioned here https://github.com/aws/nova-act?tab=readme-ov-file#authentication-cookies-and-persistent-browser-state and also read this from #26 (comment).

Note: I think exposing your system level profile path is not a good option at all as mentioned in the docs but (i may be wrong here, feel free to correct) what if a bug comes in via the sdk and it wipes down the system level profile dir for that user or modifies a file even if the flag to "not wipe" is correctly passed. Because of this reason I'm leaning towards having a new context for whatever I do using the sdk.

In my understanding of this authenticated session for a website example.com (here the context is for a new profile):

So, considering these points^, will I be able to let the system wait and get the TOTP from my email and then enter via command line prompt and then can have successful user session? and then from there further actions on new runs can use that save session from this new /tmp/new-nova-profile dir ? (i believe that wipe not flag can be passed here).

Next, I think the way the sdk is expecting the session saving can be improved by letting the end user use a saved session from (for example):
npx playwright codegen "$BASE_URL" --save-storage=.auth/user.json and then let the sdk use this saved session.

Another thing to add here, what if there is a team of 5 people working on writing code for a project, with the proposed setup in the docs, it seems like they all have to create their respective "new chrome profiles" on their systems else one with the authenticated session user has to share the whole dir to other 4, I don't think that will work or is a feasible approach.

I want to know whether something like this is currently possible or not or if the team has future plans to adapt this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions