Skip to content

Commit 097f866

Browse files
author
Evan Sims
committed
V5 development checkin
1 parent b69024a commit 097f866

File tree

16 files changed

+7426
-280
lines changed

16 files changed

+7426
-280
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = true
8+
9+
# We use 4 space indentation for PHP
10+
[*.php]
11+
indent_style = space
12+
indent_size = 4

.styleci.yml

Lines changed: 258 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,258 @@
1+
risky: true
2+
version: 8.0
3+
preset: none
4+
enabled:
5+
- align_double_arrow
6+
- align_phpdoc
7+
- alpha_ordered_imports
8+
- alpha_ordered_traits
9+
- array_indentation
10+
- array_push
11+
- assign_null_coalescing_to_coalesce_equal
12+
- backtick_to_shell_exec
13+
- binary_operator_spaces
14+
- blank_line_after_namespace
15+
- blank_line_after_opening_tag
16+
- blank_line_before_break
17+
- blank_line_before_cases
18+
- blank_line_before_continue
19+
- blank_line_before_declare
20+
- blank_line_before_do
21+
- blank_line_before_exit
22+
- blank_line_before_for
23+
- blank_line_before_goto
24+
- blank_line_before_if
25+
- blank_line_before_include
26+
- blank_line_before_return
27+
- blank_line_before_switch
28+
- blank_line_before_throw
29+
- blank_line_before_try
30+
- blank_line_before_while
31+
- blank_line_before_yield
32+
- cast_spaces
33+
- class_reference_name_casing
34+
- clean_namespace
35+
- combine_consecutive_issets
36+
- combine_consecutive_unsets
37+
- combine_nested_dirname
38+
- comment_to_phpdoc
39+
- compact_nullable_typehint
40+
- concat_with_spaces
41+
- const_separation
42+
- const_visibility_required
43+
- declare_equal_normalize
44+
- declare_strict_types
45+
- deprecation_error_suppression
46+
- die_to_exit
47+
- dir_constant
48+
- doctrine_annotation_array_assignment
49+
- doctrine_annotation_braces
50+
- doctrine_annotation_indentation
51+
- doctrine_annotation_spaces
52+
- elseif
53+
- empty_loop_body_braces
54+
- empty_loop_condition
55+
- encoding
56+
- ereg_to_preg
57+
- escape_implicit_backslashes
58+
- explicit_indirect_variable
59+
- explicit_string_variable
60+
- final_internal_class
61+
- final_public_method_for_abstract_class
62+
- fopen_flag_order
63+
- fopen_flags
64+
- full_opening_tag
65+
- fully_qualified_strict_types
66+
- function_declaration
67+
- function_to_constant
68+
- function_typehint_space
69+
- get_class_to_class_keyword
70+
- hash_to_slash_comment
71+
- heredoc_indentation
72+
- heredoc_to_nowdoc
73+
- implode_call
74+
- include
75+
- indentation
76+
- integer_literal_case
77+
- is_null
78+
- laravel_braces
79+
- laravel_phpdoc_alignment
80+
- laravel_phpdoc_order
81+
- laravel_phpdoc_separation
82+
- linebreak_after_opening_tag
83+
- logical_operators
84+
- lowercase_cast
85+
- lowercase_constants
86+
- lowercase_keywords
87+
- lowercase_static_reference
88+
- magic_constant_casing
89+
- magic_method_casing
90+
- mb_str_functions
91+
- method_argument_space_strict
92+
- method_chaining_indentation
93+
- method_separation
94+
- method_visibility_required
95+
- modernize_strpos
96+
- modernize_types_casting
97+
- multiline_comment_opening_closing
98+
- native_function_casing
99+
- native_function_invocation_symfony
100+
- native_function_type_declaration_casing
101+
- new_with_braces
102+
- no_alias_functions
103+
- no_alternative_syntax
104+
- no_binary_string
105+
- no_blank_lines_after_class_opening
106+
- no_blank_lines_after_phpdoc
107+
- no_blank_lines_after_return
108+
- no_blank_lines_after_throw
109+
- no_blank_lines_around_break
110+
- no_blank_lines_around_cases
111+
- no_blank_lines_around_continue
112+
- no_blank_lines_around_switch
113+
- no_blank_lines_between_imports
114+
- no_break_comment
115+
- no_closing_tag
116+
- no_empty_comment
117+
- no_empty_phpdoc
118+
- no_empty_statement
119+
- no_extra_block_blank_lines
120+
- no_extra_consecutive_blank_lines
121+
- no_homoglyph_names
122+
- no_leading_import_slash
123+
- no_leading_namespace_whitespace
124+
- no_multiline_whitespace_around_double_arrow
125+
- no_multiline_whitespace_before_semicolons
126+
- no_php4_constructor
127+
- no_short_bool_cast
128+
- no_short_echo_tag
129+
- no_singleline_whitespace_before_semicolons
130+
- no_space_around_double_colon
131+
- no_spaces_after_function_name
132+
- no_spaces_inside_offset
133+
- no_spaces_inside_parenthesis
134+
- no_spaces_outside_offset
135+
- no_superfluous_elseif
136+
- no_superfluous_phpdoc_tags_symfony
137+
- no_trailing_comma_in_list_call
138+
- no_trailing_comma_in_singleline_array
139+
- no_trailing_comma_in_singleline_function_call
140+
- no_trailing_whitespace
141+
- no_trailing_whitespace_in_comment
142+
- no_trailing_whitespace_in_string
143+
- no_unneeded_control_parentheses
144+
- no_unneeded_curly_braces
145+
- no_unneeded_final_method
146+
- no_unneeded_import_alias
147+
- no_unreachable_default_argument_value
148+
- no_unset_cast
149+
- no_unused_imports
150+
- no_unused_lambda_imports
151+
- no_useless_else
152+
- no_useless_return
153+
- no_useless_sprintf
154+
- no_whitespace_before_comma_in_array
155+
- no_whitespace_in_blank_line
156+
- non_printable_character
157+
- normalize_index_brace
158+
- not_operator_with_successor_space
159+
- nullable_type_declarations
160+
- object_operator_without_whitespace
161+
- operator_linebreak_end
162+
- ordered_class_elements
163+
- php_unit_fqcn_annotation
164+
- phpdoc_add_missing_param_annotation
165+
- phpdoc_annotation_without_dot
166+
- phpdoc_indent
167+
- phpdoc_inline_inheritdoc
168+
- phpdoc_inline_tag_normalizer
169+
- phpdoc_link_to_see
170+
- phpdoc_no_access
171+
- phpdoc_no_empty_return
172+
- phpdoc_no_package
173+
- phpdoc_no_useless_inheritdoc
174+
- phpdoc_property
175+
- phpdoc_return_self_reference
176+
- phpdoc_scalar
177+
- phpdoc_single_line_var_spacing
178+
- phpdoc_singular_inheritdoc
179+
- phpdoc_summary
180+
- phpdoc_to_comment
181+
- phpdoc_trim
182+
- phpdoc_trim_consecutive_blank_line_separation
183+
- phpdoc_type_to_var
184+
- phpdoc_types
185+
- phpdoc_types_order
186+
- phpdoc_var_order
187+
- phpdoc_var_without_name
188+
- pow_to_exponentiation
189+
- pre_increment
190+
- print_to_echo
191+
- property_separation
192+
- property_visibility_required
193+
- protected_to_private
194+
- psr4
195+
- random_api_migration
196+
- regular_callable_call
197+
- return_assignment
198+
- return_type_declaration
199+
- self_accessor
200+
- self_static_accessor
201+
- semicolon_after_instruction
202+
- set_type_to_cast
203+
- short_array_syntax
204+
- short_list_syntax
205+
- short_scalar_cast
206+
- simple_to_complex_string_variable
207+
- simplified_if_return
208+
- single_blank_line_at_eof
209+
- single_blank_line_before_namespace
210+
- single_class_element_per_statement
211+
- single_import_per_statement
212+
- single_line_after_imports
213+
- single_line_comment_spacing
214+
- single_line_throw
215+
- single_quote
216+
- single_space_after_construct
217+
- single_trait_insert_per_statement
218+
- space_after_semicolon
219+
- standardize_increment
220+
- standardize_not_equals
221+
- static_lambda
222+
- strict_comparison
223+
- strict_param
224+
- string_length_to_empty
225+
- string_line_ending
226+
- switch_case_semicolon_to_colon
227+
- switch_case_space
228+
- switch_continue_to_break
229+
- symfony_class_definition
230+
- ternary_operator_spaces
231+
- ternary_to_elvis_operator
232+
- ternary_to_null_coalescing
233+
- trailing_comma_in_multiline_array
234+
- trailing_comma_in_multiline_call
235+
- trailing_comma_in_multiline_definition
236+
- trim_array_spaces
237+
- unalign_equals
238+
- unary_operator_spaces
239+
- union_type_without_spaces
240+
- unix_line_endings
241+
- use_arrow_functions
242+
- void_return
243+
- whitespace_after_comma_in_array
244+
- yoda_style
245+
finder:
246+
exclude:
247+
- "modules"
248+
- "node_modules"
249+
- "nova"
250+
- "nova-components"
251+
- "storage"
252+
- "spark"
253+
- "vendor"
254+
- "tests"
255+
name: "*.php"
256+
not-name:
257+
- "*.blade.php"
258+
- "_ide_helper.php"

LICENSE renamed to LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2021 Auth0, Inc. <support@auth0.com> (https://auth0.com)
3+
Copyright (c) 2022 Auth0, Inc. <support@auth0.com> (https://auth0.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 46 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,76 @@
11
{
2-
"name": "auth0/jwt-auth-bundle",
2+
"name": "auth0/symfony",
3+
"description": "Symfony SDK for Auth0 Authentication and Management APIs.",
4+
"license": "MIT",
35
"type": "symfony-bundle",
4-
"description": "Support for authenticating users with a JWT in Symfony.",
56
"keywords": [
7+
"symfony",
8+
"auth0",
69
"authentication",
7-
"firewall",
10+
"authorization",
11+
"login",
12+
"auth",
813
"jwt",
9-
"security",
10-
"auth0"
14+
"json web token",
15+
"jwk",
16+
"json web key",
17+
"oauth",
18+
"openid",
19+
"secure",
20+
"protect",
21+
"api"
1122
],
12-
"homepage": "http://github.com/auth0/jwt-auth-bundle",
13-
"license": "MIT",
1423
"authors": [
1524
{
1625
"name": "Auth0",
1726
"email": "support@auth0.com",
1827
"homepage": "https://auth0.com/"
1928
}
2029
],
30+
"homepage": "https://github.com/auth0/jwt-auth-bundle",
2131
"require": {
22-
"php": "^7.3 | ^8.0",
23-
"symfony/framework-bundle": "^4.4 || ~5.1",
24-
"auth0/auth0-php": "^7.6"
32+
"php": "^8.0",
33+
"symfony/framework-bundle": "^6.0",
34+
"auth0/auth0-php": "^8.0"
2535
},
2636
"require-dev": {
27-
"phpunit/phpunit": "^9.3",
28-
"nyholm/symfony-bundle-test": "^1.0.2",
29-
"symfony/security": "^4.4 || ~5.1",
30-
"squizlabs/php_codesniffer": "^3.2",
31-
"phpcompatibility/php-compatibility": "^8.1",
32-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
33-
"phpstan/phpstan": "^0.12.64",
34-
"phpstan/extension-installer": "^1.1",
35-
"phpstan/phpstan-symfony": "^0.12.20",
36-
"mockery/mockery": "^1.4"
37-
},
38-
"scripts": {
39-
"test": "SHELL_INTERACTIVE=1 \"./vendor/bin/phpunit\" --coverage-text ",
40-
"test-unit-ci": "\"vendor/bin/phpunit\" --stop-on-failure --coverage-clover=build/coverage.xml",
41-
"analyze": "@php ./vendor/bin/phpstan analyze",
42-
"compat": "@php ./vendor/bin/phpcs --standard=.phpcs-compat.xml.dist",
43-
"format": "@php ./vendor/bin/phpcbf",
44-
"lint": "@php ./vendor/bin/phpcs",
45-
"sniffs": "@php ./vendor/bin/phpcs -e",
46-
"config-phpcs": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run",
47-
"pre-commit": [
48-
"@analyze",
49-
"@test",
50-
"@format",
51-
"@compat"
52-
]
37+
"firebase/php-jwt": "^6.3",
38+
"hyperf/event": "^2.2",
39+
"laravel/pint": "^1.2",
40+
"mockery/mockery": "^1.5",
41+
"nyholm/psr7": "^1.5",
42+
"pestphp/pest": "^1.21",
43+
"php-http/mock-client": "^1.5",
44+
"phpstan/phpstan": "^1.9",
45+
"phpstan/phpstan-strict-rules": "^1.4.4",
46+
"phpunit/phpunit": "^9.5",
47+
"rector/rector": "^0.14.7",
48+
"squizlabs/php_codesniffer": "^3.7",
49+
"symfony/cache": "^4.4 || ^5.4 || ^6.1",
50+
"vimeo/psalm": "^4.30",
51+
"wikimedia/composer-merge-plugin": "^2.0"
5352
},
5453
"autoload": {
5554
"psr-4": {
56-
"Auth0\\JWTAuthBundle\\": "src/"
55+
"Auth0\\Symfony\\": "src/"
5756
}
5857
},
5958
"autoload-dev": {
6059
"psr-4": {
61-
"Auth0\\JWTAuthBundle\\": "Tests/"
60+
"Auth0\\Tests\\": "tests/"
6261
}
6362
},
6463
"config": {
65-
"optimize-autoloader": true,
66-
"sort-packages": true,
6764
"allow-plugins": {
6865
"dealerdirect/phpcodesniffer-composer-installer": true,
66+
"pestphp/pest-plugin": true,
67+
"ergebnis/composer-normalize": true,
68+
"wikimedia/composer-merge-plugin": true,
69+
"symfony/flex": true,
6970
"phpstan/extension-installer": true
70-
}
71-
}
71+
},
72+
"optimize-autoloader": true,
73+
"sort-packages": true
74+
},
75+
"prefer-stable": true
7276
}

0 commit comments

Comments
 (0)