As there is no way to delete/revoke access token it is suggested that deleting a tunnel deleted a token.
It is not true.
Reproduction:
- Create tunnel
devtunnel create mytunnel
- Create a port
devtunnel port create -p 5000
- Create a token
devtunnel token --scope connect
- Host tunnel
devtunnel host
curl with proper header works.
-
Delete tunnels
devtunnel delete-all
-
Confirm no tunnels
devtunnel list - empty list
-
Recreate a tunnel
devtunnel create mytunnel
-
Create a port
devtunnel port create -p 5000
-
DO NOT create a token
-
Host tunnel
devtunnel host
The same curl request works.
If I create a new token for this tunnel, the same curl request as above, with the old token still works
As there is no way to delete/revoke access token it is suggested that deleting a tunnel deleted a token.
It is not true.
Reproduction:
devtunnel create mytunneldevtunnel port create -p 5000devtunnel token --scope connectdevtunnel hostcurl with proper header works.
Delete tunnels
devtunnel delete-allConfirm no tunnels
devtunnel list- empty listRecreate a tunnel
devtunnel create mytunnelCreate a port
devtunnel port create -p 5000DO NOT create a token
Host tunnel
devtunnel hostThe same curl request works.
If I create a new token for this tunnel, the same curl request as above, with the old token still works