-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add Stripe subplat saml mapping support #331
Conversation
…apping # Conflicts: # rules/SAML-configuration-mapping.js
rules/SAML-configuration-mapping.js
Outdated
@@ -33,6 +34,33 @@ function (user, context, callback) { | |||
}; | |||
|
|||
break; | |||
case 'stripe-subplat': | |||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1637117 | |||
var groupToStripeRoleMap = { |
There was a problem hiding this comment.
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
. :)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
. :)
There was a problem hiding this comment.
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.
Reformat groupToStripeRoleMap to be easier to read Change to use dot format for objects Change to use templates instead of string concatenation
This rule was already cleaned up, by leaving it this way you’re making it
so it now needs to be cleaned up. :P
On May 27, 2020, at 10:34 AM, Gene Wood <[email protected]> wrote:
*@gene1wood* commented on this pull request.
------------------------------
In rules/SAML-configuration-mapping.js
<#331 (comment)>
:
@@ -33,6 +34,33 @@ function (user, context, callback) {
};
break;
+ case 'stripe-subplat':
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=1637117
+ var groupToStripeRoleMap = {
Ok, I opened #333 <#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.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#331 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABYJAHBBKGJ2YPIUDMXATLRTUXJVANCNFSM4NHBLX6Q>
.
|
This is in advance of #333 being completed
Ok, I've changed |
* '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)
https://bugzilla.mozilla.org/show_bug.cgi?id=1637117