Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-31735 - ReDisplay OpenID Connect #7325

Merged
merged 10 commits into from
Jan 29, 2021

Conversation

sbishel
Copy link
Member

@sbishel sbishel commented Jan 14, 2021

This reverts commit f56689c.

Summary

Displays OpenID section in System Console.

Ticket Link

https://mattermost.atlassian.net/browse/MM-31735

Screenshots

Screen Shot 2021-01-14 at 4 40 54 PM
Screen Shot 2021-01-14 at 4 40 38 PM
Screen Shot 2021-01-14 at 4 40 25 PM
Screen Shot 2021-01-14 at 4 38 07 PM

@sbishel sbishel added 1: PM Review Requires review by a product manager 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) labels Jan 15, 2021
@sbishel
Copy link
Member Author

sbishel commented Jan 15, 2021

Waiting to make sure Mobile changes are merged.
mattermost/mattermost-mobile#5075

@wiersgallak wiersgallak removed the 1: PM Review Requires review by a product manager label Jan 15, 2021
@hahmadia
Copy link
Contributor

/update-branch

@sbishel sbishel removed the Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) label Jan 20, 2021
@@ -4117,7 +4118,11 @@ const AdminDefinition = {
type: Constants.SettingsTypes.TYPE_CUSTOM,
component: OpenIdConvert,
key: 'OpenIdConvert',
isHidden: () => true,
isHidden: it.any(
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be like this? Namely, only hidden if none of them are licensed?

Suggested change
isHidden: it.any(
isHidden: it.all(

Copy link
Member Author

Choose a reason for hiding this comment

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

Removed check on Google and Office365 completely. Now only check for "OpenId" license.
So it is hidden if it is NOT Licensed for "OpenId".
It is also hidden if it is licensed for OpenId and does NOT use LegacyOAuth.

@furqanmlk
Copy link
Contributor

Getting OAuth DEPRECATED option for E10 license
image

@@ -4062,10 +4062,14 @@ const AdminDefinition = {
defaultMessage='deprecated'
/>
),
shouldDisplay: () => false,
shouldDisplay: (license) => license.IsLicensed && license.OpenId === 'true',
Copy link
Member Author

@sbishel sbishel Jan 21, 2021

Choose a reason for hiding this comment

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

@furqanmlk - Fixes displaying "Deprecated"
Nice Catch.

it.all(
it.licensedForFeature('OpenId'),
it.not(usesLegacyOauth),
),
Copy link
Member Author

@sbishel sbishel Jan 21, 2021

Choose a reason for hiding this comment

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

OAuth should be hidden if it is licensed for OpenId AND does NOT use legacy oauth.

@sbishel sbishel requested a review from mkraft January 21, 2021 22:20
@sbishel
Copy link
Member Author

sbishel commented Jan 21, 2021

@mkraft - Let me know if you want to talk through some of logic on displaying. With the negative checks it gets confusing, but I think I have it straight now and tested all 6 iterations.
3 difference licensing (TE, E10, E20)
2 configuration variances (Contains legacy OAuth, NO Legacy OAuth)

@sbishel
Copy link
Member Author

sbishel commented Jan 25, 2021

/update-branch

Copy link
Contributor

@furqanmlk furqanmlk left a comment

Choose a reason for hiding this comment

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

All test cases passed ✅

@sbishel sbishel modified the milestone: v5.32.0 Jan 26, 2021
@sbishel sbishel merged commit 7caddf8 into mattermost:master Jan 29, 2021
@sbishel sbishel deleted the MM-31735-enable-openid branch January 29, 2021 00:34
@sbishel sbishel added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter 3: QA Review Requires review by a QA tester labels Jan 29, 2021
@amyblais amyblais added this to the v5.33 milestone Jan 29, 2021
chetanyakan added a commit to brightscout-alpha/mattermost-webapp that referenced this pull request Feb 2, 2021
… MM-2020

* 'master' of github.com:mattermost/mattermost-webapp: (175 commits)
  fix/update failed E2E tests (mattermost#7430)
  [MM-31791] Support Packet Generation FRONTEND (mattermost#7314)
  [MM-32269] System Console: TeamIcon edge cases (mattermost#7395)
  update steps for google openid (mattermost#7327)
  git checkout -b fix-slash-commands-tm4j (mattermost#7397)
  MM-31646: Update Office instructions (mattermost#7326)
  Cypress/E2E: Fix tests for archived channels (mattermost#7424)
  Cypress/E2E: Fix tests for bots in list and in sidebar (mattermost#7421)
  [MM-29108] Simplifies emoji reaction animation (mattermost#7386)
  Cypress/E2E: Overwrite cy.visit and cy.reload to have default 3s wait (mattermost#7410)
  [MM-22369] Filter out ldap group sync teams when adding a team to a user (mattermost#7324)
  MM 31192  - license renewal telemetry (mattermost#7413)
  Migrate message_attachments folder to Typescript (mattermost#7339)
  Cypress/E2E: Fix and reorganize tests for custom emojis (mattermost#7415)
  promote tests with 23 tm4j test cases (mattermost#7402)
  fix failed tests due to recent change in add users modal (mattermost#7398)
  fix for more channels and auth specs (mattermost#7416)
  fix e2e for sidebar channels (mattermost#7412)
  remove duplicate MM-T3294, fix MM-T1253 and fix/reorganize other keyboard shortcuts tests (mattermost#7390)
  MM-31735 - ReDisplay OpenID Connect (mattermost#7325)
  ...
@amyblais amyblais added Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation labels Feb 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request Changelog/Done Required changelog entry has been written Docs/Not Needed Does not require documentation
Projects
None yet
7 participants