Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

adapter: access tokens #1711

Closed
int19h opened this issue Aug 22, 2019 · 0 comments
Closed

adapter: access tokens #1711

int19h opened this issue Aug 22, 2019 · 0 comments
Assignees

Comments

@int19h
Copy link
Contributor

int19h commented Aug 22, 2019

Adapter should implement the counterpart to #1710 in pydevd. This includes:

  1. A command line argument that allows to specify the server access token (used by ptvsd in enable_attach() mode).
  2. Generation of a cryptographically secure client access token.
  3. Passing the server token to pydevd in the "initialize" request when connecting.
  4. Verifying that the client token returned by pydevd in the "initialize" response matches the generated client token.
@Anapo14 Anapo14 added this to the September 2019.1 milestone Sep 4, 2019
@gramster gramster removed this from the Sep 2019.1 milestone Sep 10, 2019
@int19h int19h closed this as completed in b7c48cc Oct 1, 2019
@karthiknadig karthiknadig reopened this Oct 1, 2019
@int19h int19h self-assigned this Oct 3, 2019
int19h added a commit to int19h/ptvsd that referenced this issue Dec 9, 2019
Generate server access token in enable_attach(), propagate it to the adapter, and have the adapter authenticate to the server via "pydevdAuthorize".

Fix pydevd to correctly propagate access tokens for subprocesses that are not forked.
int19h added a commit to int19h/ptvsd that referenced this issue Dec 9, 2019
Generate server access token in enable_attach(), propagate it to the adapter, and have the adapter authenticate to the server via "pydevdAuthorize".

Generate client access token in adapter when not spawned by server, and propagate it to pydevd.

Fix pydevd to correctly propagate access tokens for subprocesses that are not forked.
int19h added a commit to int19h/ptvsd that referenced this issue Dec 11, 2019
Generate server access token in enable_attach(), propagate it to the adapter, and have the adapter authenticate to the server via "pydevdAuthorize".

Generate client access token in adapter when not spawned by server, and propagate it to pydevd.

Fix pydevd to correctly propagate access tokens for subprocesses that are not forked.
@int19h int19h closed this as completed in 0d79c16 Dec 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants