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

Add Stripe subplat saml mapping support #331

Merged
merged 9 commits into from
May 27, 2020
Merged

Add Stripe subplat saml mapping support #331

merged 9 commits into from
May 27, 2020

Conversation

gene1wood
Copy link
Contributor

@gene1wood gene1wood requested a review from april May 21, 2020 18:11
rules/SAML-configuration-mapping.js Outdated Show resolved Hide resolved
rules/SAML-configuration-mapping.js Outdated Show resolved Hide resolved
rules/SAML-configuration-mapping.js Outdated Show resolved Hide resolved
rules/SAML-configuration-mapping.js Outdated Show resolved Hide resolved
rules/SAML-configuration-mapping.js Outdated Show resolved Hide resolved
@@ -33,6 +34,33 @@ function (user, context, callback) {
};

break;
case 'stripe-subplat':
// https://bugzilla.mozilla.org/show_bug.cgi?id=1637117
var groupToStripeRoleMap = {
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, and const, not var. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we want var here to follow the Auth0 style : https://github.com/mozilla-iam/auth0-deploy#style

Copy link
Contributor

Choose a reason for hiding this comment

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

We should change our style then. :)

Const and let are generally how things should be done, and the rest of this code (as well as all of my new code) uses const/let.

Copy link
Contributor

Choose a reason for hiding this comment

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

To add, our documentation says:

The primary goal is to follow the style of the Auth0 example rules.

Having looked at the auth0 example rules, it seems like they have all been updated to use const and let. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I opened #333 to capture that. I'll leave this as is and we can clean this rule up with all the other rules and the documentation.

gene1wood added 5 commits May 26, 2020 09:36
Reformat groupToStripeRoleMap to be easier to read
Change to use dot format for objects
Change to use templates instead of string concatenation
@gene1wood gene1wood requested a review from april May 26, 2020 19:42
@april
Copy link
Contributor

april commented May 27, 2020 via email

This is in advance of #333 being completed
@gene1wood
Copy link
Contributor Author

Ok, I've changed var to const

@gene1wood gene1wood merged commit 0a763a4 into mozilla-iam:master May 27, 2020
@gene1wood gene1wood deleted the add_stripe_saml_mapping branch May 27, 2020 18:39
april added a commit to april/auth0-deploy that referenced this pull request Jun 9, 2020
* 'master' of https://github.com/mozilla-iam/auth0-deploy:
  Fix issues with integers, first name, and the usernames hack
  Add code to set `existsInCIS` and remove min login check
  A bunch of fixes including:
  Add newline at EOF
  Add direct creature of users in CIS from Auth0
  Add Stripe subplat saml mapping support (mozilla-iam#331)
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