Skip to content

Check FES when loading inbox - #349

Merged
tomholub merged 2 commits into
masterfrom
feature/issue-339-check-fes-on-auth
Jun 10, 2021
Merged

Check FES when loading inbox#349
tomholub merged 2 commits into
masterfrom
feature/issue-339-check-fes-on-auth

Conversation

@ekievsky

Copy link
Copy Markdown
Contributor

This PR implements checking FES on auth

close#339


Tests:

  • Does not need tests (refactor only, docs or internal changes)
  • Difficult to test

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@ekievsky

Copy link
Copy Markdown
ContributorAuthor

@tomholub it is checking the user's FES after startup of logged in user and shows the toast. Should we keep this flow for both cases?

@tomholub

tomholub commented Jun 9, 2021 via email

Copy link
Copy Markdown
Collaborator

@ekievsky

Copy link
Copy Markdown
ContributorAuthor

issue #339 is for checking FES on auth and issue #340 to check that on start up for logged in user. So this PR checks FES on Inbox screen and covers these 2 cases. It shows a toast message that says FES at $url not supported on iOS yet if there is service key which equals enterprise-server for both cases

@tomholub

tomholub commented Jun 9, 2021 via email

Copy link
Copy Markdown
Collaborator

@ekievsky

Copy link
Copy Markdown
ContributorAuthor

no rush, thank you!


private func checkFES() {
enterpriseServerApi.getActiveFesUrlForCurrentUser()
.then(on: .main) { [weak self] email in

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

this is an URL, right? not an email

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

right, typo

@tomholubtomholub left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks!

@tomholubtomholub changed the title Check FES on AuthCheck FES when loading inboxJun 10, 2021
@tomholub
tomholub merged commit 4e5ffe6 into masterJun 10, 2021
@tomholub
tomholub deleted the feature/issue-339-check-fes-on-auth branch June 10, 2021 06:15
Sign up for freeto 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.

prepwork for retrieving client configuration (OrgRules) from FES

2 participants

@ekievsky@tomholub