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

OIDC support (with PS support) #157

Merged
merged 3 commits into from
Oct 22, 2021
Merged

OIDC support (with PS support) #157

merged 3 commits into from
Oct 22, 2021

Conversation

kanika1894
Copy link
Contributor

This PR contains OIDC support (with PS) for login action.
Since the latest versions of packages had to be picked, node_modules are also checked in.

* OIDC support ps (#155)

ps login support

* Update main.ts

* formatting code
@@ -15,9 +15,11 @@ export class ServicePrincipalLogin implements IAzurePowerShellSession {
subscriptionId: string;
resourceManagerEndpointUrl: string;
allowNoSubscriptionsLogin: boolean;
federatedToken:string;
Copy link
Contributor

@kaverma kaverma Oct 21, 2021

Choose a reason for hiding this comment

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

nit formatting: space

import * as core from '@actions/core';
Copy link
Contributor

Choose a reason for hiding this comment

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

main.ts is difference is not showing properly. What all has changed here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, some issue is showing diff there.
You can hide whitespaces from the below settings, which will make easy to see the diff.
image

src/main.ts Outdated
//If few of the individual credentials (clent_id, tenat_id, subscription_id) are missing in action inputs.
if (!(servicePrincipalId && tenantId && (subscriptionId || allowNoSubscriptionsLogin)))
throw new Error("Few credentials are missing.ClientId,tenantId are mandatory. SubscriptionId is also mandatory if allow-no-subscriptions is not set.");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: space after fullstops for error messages

@kanika1894 kanika1894 merged commit bf082a8 into releases/v1 Oct 22, 2021
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.

3 participants