Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Github Issue: MAAP-Project/Community#872
Description
Need account_info to receive proxy-ticket as an optional parameter, because MAAP_PGT isn't being set as an environment variable until the call to injectPublicKey in jupyter-server-extension which doesn't happen until we already have the public ssh key which we need this account_info function to get. These calls are originating from user workspace management jupyter extension
Overview of work done
Added proxy_ticket as an optional parameter for account_info which adds this variable to the header if not already present in self._api_header
Overview of verification done
Tested locally and in the ADE with image: mas.dit.maap-project.org/root/maap-workspaces/jupyterlab/python:ssh-fix

Deleted the authorized_keys file in DIT then relaunched the workspace, authorized_keys was automatically added again. This was because I had uploaded my public key to my MAAP profile here:
Overview of integration done
Tested in this image: mas.dit.maap-project.org/root/maap-workspaces/jupyterlab/python:ssh-fix. Made sure PGT token was still present in the workspace and still could view/ submit jobs
PR checklist:
See Pull Request Review Checklist for pointers on reviewing this pull request
Should be merged in combination with these PRs: MAAP-Project/jupyter-server-extension#18, MAAP-Project/user-workspace-management-jupyter-extension#12