canonical-urls
2 months ago
carousel
4 weeks ago
comment-likes
6 months ago
comments
4 weeks ago
custom-post-types
3 months ago
external-media
6 months ago
google-fonts
4 months ago
gravatar
5 years ago
infinite-scroll
4 weeks ago
likes
5 months ago
markdown
6 months ago
memberships
1 month ago
photon-cdn
1 month ago
plugin-search
4 weeks ago
post-by-email
6 months ago
related-posts
3 months ago
scan
2 months ago
seo-tools
2 months ago
sharedaddy
4 weeks ago
shortcodes
3 weeks ago
simple-payments
6 months ago
site-icon
6 months ago
sitemaps
6 months ago
stats
5 months ago
subscriptions
4 weeks ago
theme-tools
3 months ago
tiled-gallery
6 months ago
verification-tools
6 months ago
videopress
2 months ago
widget-visibility
6 months ago
widgets
4 weeks ago
woocommerce-analytics
1 month ago
wordads
1 month ago
wpcom-tos
5 months ago
account-protection.php
1 month ago
blaze.php
6 months ago
blocks.php
6 months ago
canonical-urls.php
3 months ago
carousel.php
6 months ago
comment-likes.php
6 months ago
comments.php
2 months ago
contact-form.php
6 months ago
copy-post.php
4 months ago
custom-content-types.php
1 month ago
google-fonts.php
1 month ago
gravatar-hovercards.php
1 month ago
infinite-scroll.php
6 months ago
json-api.php
6 months ago
latex.php
6 months ago
likes.php
4 weeks ago
markdown.php
6 months ago
module-extras.php
6 months ago
module-headings.php
1 month ago
module-info.php
3 months ago
monitor.php
6 months ago
notes.php
5 months ago
photon-cdn.php
6 months ago
photon.php
6 months ago
plugin-search.php
4 weeks ago
post-by-email.php
1 month ago
post-list.php
6 months ago
protect.php
1 month ago
publicize.php
6 months ago
related-posts.php
1 month ago
search.php
6 months ago
seo-tools.php
6 months ago
sharedaddy.php
3 months ago
shortcodes.php
6 months ago
shortlinks.php
6 months ago
simple-payments.php
6 months ago
sitemaps.php
6 months ago
sso.php
6 months ago
stats.php
5 months ago
subscriptions.php
4 weeks ago
theme-tools.php
6 months ago
tiled-gallery.php
6 months ago
vaultpress.php
6 months ago
verification-tools.php
1 month ago
videopress.php
6 months ago
waf.php
6 months ago
widget-visibility.php
6 months ago
widgets.php
6 months ago
woocommerce-analytics.php
6 months ago
wordads.php
6 months ago
wpcom-reader.php
3 months ago
wpgroho.js
1 year ago
sso.php
32 lines
| 1 | <?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName |
| 2 | /** |
| 3 | * Module Name: Secure Sign On |
| 4 | * Module Description: Let users log in with their WordPress.com account for quick, secure access. |
| 5 | * Sort Order: 30 |
| 6 | * Recommendation Order: 5 |
| 7 | * First Introduced: 2.6 |
| 8 | * Requires Connection: Yes |
| 9 | * Requires User Connection: Yes |
| 10 | * Auto Activate: No |
| 11 | * Module Tags: Developers |
| 12 | * Feature: Security |
| 13 | * Additional Search Queries: sso, single sign on, login, log in, 2fa, two-factor |
| 14 | * |
| 15 | * @package automattic/jetpack |
| 16 | */ |
| 17 | |
| 18 | use Automattic\Jetpack\Connection\SSO; |
| 19 | |
| 20 | if ( ! defined( 'ABSPATH' ) ) { |
| 21 | exit( 0 ); |
| 22 | } |
| 23 | |
| 24 | SSO::get_instance(); |
| 25 | |
| 26 | add_action( |
| 27 | 'jetpack_modules_loaded', |
| 28 | function () { |
| 29 | Jetpack::enable_module_configurable( __FILE__ ); |
| 30 | } |
| 31 | ); |
| 32 |