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

User username as VM username rather than random ID #3770

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

marrobi
Copy link
Member

@marrobi marrobi commented Oct 27, 2023

Fixes #1148 #3693

This is a PoC.

Will look to:

  • Pass an object rather than individual values
  • Do for other VM templates

Thoughts welcome.

@marrobi marrobi changed the title PoC with Windows VM User username as VM username rather than random ID Oct 27, 2023
@github-actions
Copy link

github-actions bot commented Oct 27, 2023

Unit Test Results

596 tests   594 ✅  7s ⏱️
  1 suites    2 💤
  1 files      0 ❌

Results for commit 8e8483e.

♻️ This comment has been updated with latest results.

@marrobi
Copy link
Member Author

marrobi commented Feb 28, 2024

@tamirkamara @damoodamoo welcome your thoughts on this from a design perspective, got a few asks for this. Think should have a "user object":

"user": {
 "name": "blah",
 "email": "blah",
 "username": "blah" 
}

In the payload rather than how I've done it in this PR? The RP would need to understand where to look.

Copy link
Contributor

@tanya-borisova tanya-borisova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Personally, I think it's fine without a user object, as this avoids some code in the RP that would have to unpack it

@damoodamoo
Copy link
Member

I would say it would be nicer to pass a user object rather than as individual fields, since it will only grow over time. But - not a big deal and agree with @tanya-borisova that it would mean more code in the RP.

@marrobi
Copy link
Member Author

marrobi commented Oct 18, 2024

/test-extended

Copy link

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/11401103181 (with refid 323e78ec)

(in response to this comment from @marrobi)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VM username should be the users username from access token, rather than a random one.
4 participants