Skip to content

Adding CLI and PS error logs & optional audience parameter - #159

Merged
Balaga Gayatri (BALAGA-GAYATRI) merged 8 commits into
masterfrom
master-logs
Nov 15, 2021
Merged

Adding CLI and PS error logs & optional audience parameter#159
Balaga Gayatri (BALAGA-GAYATRI) merged 8 commits into
masterfrom
master-logs

Conversation

@BALAGA-GAYATRI

@BALAGA-GAYATRI Balaga Gayatri (BALAGA-GAYATRI) commented Oct 25, 2021

Copy link
Copy Markdown
Contributor

Added federated token logs - sample output:
Screenshot 2021-10-25 at 7 00 15 PM

Also, added audience parameter (which will be optional) and defaults to ‘api://AzureADTokenExchange’

@BALAGA-GAYATRI Balaga Gayatri (BALAGA-GAYATRI) changed the title cherry pick changes Adding federated token logs Oct 25, 2021
@BALAGA-GAYATRI
Balaga Gayatri (BALAGA-GAYATRI) temporarily deployed to Automation test October 25, 2021 13:28 Inactive
@BALAGA-GAYATRI
Balaga Gayatri (BALAGA-GAYATRI) temporarily deployed to Automation test November 1, 2021 11:51 Inactive
@kanika1894 Kanika Pasrija (kanika1894) changed the title Adding federated token logs Adding federated token logs & optional audience parameter Nov 1, 2021
Comment thread README.md
pwd
```
This action supports login az powershell as well for both windows and linux runners by setting an input parameter `enable-AzPSSession: true`. Below is the sample workflow for the same using the windows runner. Please note that powershell login is not supported in Macos runners.
Users can also specify `audience` field for access-token in the input parameters of the action. If not specified, it is defaulted to `api://AzureADTokenExchange`. This action supports login az powershell as well for both windows and linux runners by setting an input parameter `enable-AzPSSession: true`. Below is the sample workflow for the same using the windows runner. Please note that powershell login is not supported in Macos runners.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: we should have "This action supports login... " in a new line

@kaverma

Copy link
Copy Markdown
Contributor

We need to update the documentation/readme to include the audience field

@kaverma Kanchan Verma (kaverma) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Balaga Gayatri (@BALAGA-GAYATRI), Usha N (@N-Usha) , should we have a security review to ensure whether we are good with all these claims in logs that anyone can see?

@BALAGA-GAYATRI
Balaga Gayatri (BALAGA-GAYATRI) temporarily deployed to Automation test November 15, 2021 07:05 Inactive
Balaga Gayatri (BALAGA-GAYATRI) added a commit that referenced this pull request Nov 15, 2021
* cherry pick changes

* added audience field option in input params

* added js

* removed extra spaces

* Adding logs to surface AZ-CLI and powershell errors (#171)

* removing token logs
@BALAGA-GAYATRI Balaga Gayatri (BALAGA-GAYATRI) changed the title Adding federated token logs & optional audience parameter Adding CLI and PS error logs & optional audience parameter Nov 15, 2021
@BALAGA-GAYATRI

Copy link
Copy Markdown
Contributor Author

Printing token logs changes are removed from this PR and will be done post security approval.

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.

2 participants