Skip to content

Check FES when loading inbox#349

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

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

Conversation

@ekievsky
Copy link
Contributor

@ekievsky ekievsky commented Jun 9, 2021

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
Contributor Author

ekievsky commented Jun 9, 2021

@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
Copy link
Collaborator

tomholub commented Jun 9, 2021 via email

@ekievsky
Copy link
Contributor Author

ekievsky commented Jun 9, 2021

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

tomholub commented Jun 9, 2021 via email

@ekievsky
Copy link
Contributor Author

ekievsky commented Jun 9, 2021

no rush, thank you!


private func checkFES() {
enterpriseServerApi.getActiveFesUrlForCurrentUser()
.then(on: .main) { [weak self] email in
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

right, typo

Copy link
Collaborator

@tomholub tomholub left a comment

Choose a reason for hiding this comment

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

Thanks!

@tomholub tomholub changed the title Check FES on Auth Check FES when loading inbox Jun 10, 2021
@tomholub tomholub merged commit 4e5ffe6 into master Jun 10, 2021
@tomholub tomholub deleted the feature/issue-339-check-fes-on-auth branch June 10, 2021 06:15
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.

prepwork for retrieving client configuration (OrgRules) from FES

2 participants