Skip to content

feat: Make OAuth2 Microsoft Provider configureable - #2624

Merged
eldadfux merged 16 commits into
appwrite:masterfrom
BobcatProgrammer:feat-926-oauth2-microsoft-tenant-config
Jan 30, 2022
Merged

eldadfux merged 16 commits into
appwrite:masterfrom
BobcatProgrammer:feat-926-oauth2-microsoft-tenant-config

Conversation

@BobcatProgrammer

@BobcatProgrammer BobcatProgrammer commented Jan 17, 2022 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR enables configuration of the TenantId for the Microsoft OAuth2 provider as documented here. This enables control over what types of accounts can authenticate via Microsoft.

To facilitate this the PR also changes how custom OAuth2 providers can be configured. Details can be found in the docs

Open Points in DRAFT

  • Make the JS part generic
  • Migrate Apple Provider to new structure
  • Update Docs

Test Plan

  • Test Microsoft Provider with common
  • Test Microsoft Provider with organizations
  • Test Microsoft Provider with consumers
  • Test Microsoft Provider with {my tenant id}
  • Test Apple provider Form works with generic JS

Related PRs and Issues

Fixes #926
Prepares for #1668

Have you read the Contributing Guidelines on issues?

yes of course, even multiple times 😃

@eldadfux eldadfux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Added a few small suggestions. Would be great to get a screenshot of the new form.

Comment thread app/views/console/users/index.phtml Resolved
Comment thread app/views/console/users/index.phtml Resolved
Comment thread app/views/console/users/index.phtml Resolved
@BobcatProgrammer

Copy link
Copy Markdown
Contributor Author

image
Screenshot of Microsoft OAuth Provider Form

@BobcatProgrammer
BobcatProgrammer marked this pull request as ready for review January 22, 2022 23:22
@eldadfux

Copy link
Copy Markdown
Member

Please try to sync with master, tests might be failing because of other build issues the core team had.

@BobcatProgrammer

Copy link
Copy Markdown
Contributor Author

Please try to sync with master, tests might be failing because of other build issues the core team had.

done! can someone retrigger the checks please?

Comment thread src/Appwrite/Auth/OAuth2/Microsoft.php Resolved
Comment thread src/Appwrite/Auth/OAuth2/Microsoft.php Resolved
Comment thread src/Appwrite/Auth/OAuth2/Microsoft.php Resolved

@christyjacob4 christyjacob4 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Amazing work on the PR! Just some minor PSR compliance and we're good to merge 👍

@eldadfux
eldadfux merged commit 4544483 into appwrite:master Jan 30, 2022
@eldadfux

Copy link
Copy Markdown
Member

Amazing work @BobcatProgrammer, thank you so much for making this contribution to the project!

@BobcatProgrammer
BobcatProgrammer deleted the feat-926-oauth2-microsoft-tenant-config branch January 31, 2022 08:12
@mKlooney mKlooney mentioned this pull request Feb 15, 2022
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.

OAuth2 Tenant Configuration (Microsoft)

3 participants