Skip to content

OIDC support (with PS support) - #157

Merged
Kanika Pasrija (kanika1894) merged 3 commits into
releases/v1from
oidc-support
Oct 22, 2021
Merged

Kanika Pasrija (kanika1894) merged 3 commits into
releases/v1from
oidc-support

Conversation

@kanika1894

Copy link
Copy Markdown
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.

Comment thread src/PowerShell/ServicePrincipalLogin.ts Outdated
subscriptionId: string;
resourceManagerEndpointUrl: string;
allowNoSubscriptionsLogin: boolean;
federatedToken:string;

@kaverma Kanchan Verma (kaverma) Oct 21, 2021

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 formatting: space

Comment thread src/main.ts
}

main(); No newline at end of file
import * as core from '@actions/core';

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.

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

Copy link
Copy Markdown
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

Comment thread 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
Copy Markdown
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
Kanika Pasrija (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