Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: JWT Authenticator #195

Merged
merged 101 commits into from
Apr 21, 2023
Merged

feat: JWT Authenticator #195

merged 101 commits into from
Apr 21, 2023

Commits on Apr 18, 2023

  1. chore: add firebase/php-jwt

    All users do not use JWT, so I install as dev package.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    7716ee0 View commit details
    Browse the repository at this point in the history
  2. feat: add Authenticators\JWT

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9ec8cc7 View commit details
    Browse the repository at this point in the history
  3. feat: add Filters\JWTAuth

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    0c8bdc7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7a95425 View commit details
    Browse the repository at this point in the history
  5. config: fix typo

    Co-authored-by: MGatner <mgatner@icloud.com>
    kenjis and MGatner committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    3ce9ed9 View commit details
    Browse the repository at this point in the history
  6. refactor: rename classname

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    62404b5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    adbc5e5 View commit details
    Browse the repository at this point in the history
  8. style: remove line breaks

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    99f71d5 View commit details
    Browse the repository at this point in the history
  9. refactor: rename propery name

    $loginModel is confusing with LoginModel.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    62355e6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    79b9be3 View commit details
    Browse the repository at this point in the history
  11. feat: add JWTGenerator::generate()

    General purpose JWT generate() method.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    55255cc View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    39c3cd4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    f23f51f View commit details
    Browse the repository at this point in the history
  14. fix: broken test

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    d0d52ed View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    1bd81ca View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    1dd31e4 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    dab58b6 View commit details
    Browse the repository at this point in the history
  18. refactor: composer cs-fix

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    ded0ae7 View commit details
    Browse the repository at this point in the history
  19. fix: $userAgent type

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    da7f887 View commit details
    Browse the repository at this point in the history
  20. refactor: run rector

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    965df73 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    02a17bf View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7a8278c View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    61228d6 View commit details
    Browse the repository at this point in the history
  24. feat: you can configure whether to record login attempts

    The default is record only failure login attempts.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    adf04e3 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    9c3346c View commit details
    Browse the repository at this point in the history
  26. chore: update php-jwt to ^6.4

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a98936e View commit details
    Browse the repository at this point in the history
  27. docs: fix @return type

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    58f5e79 View commit details
    Browse the repository at this point in the history
  28. config: remove "aud" in $claims

    "aud" is optional, and may not be a common value.
    https://www.rfc-editor.org/rfc/rfc7519#section-4.1.3
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    1257532 View commit details
    Browse the repository at this point in the history
  29. docs: add docs

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    5e3eb43 View commit details
    Browse the repository at this point in the history
  30. docs: fix @param

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    2230319 View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    0575a53 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    a85374d View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    5b828d7 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    3849c6f View commit details
    Browse the repository at this point in the history
  35. feat: change JWTGenerator::generate() signature

    It sets "kid" in headers if it is set in the Config.
    It can also set additional header items.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    ac23566 View commit details
    Browse the repository at this point in the history
  36. docs: add PHPDoc

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    dde79d8 View commit details
    Browse the repository at this point in the history
  37. refactor: remove unused use

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a66123c View commit details
    Browse the repository at this point in the history
  38. fix: JWTAdapterInterface APIs

    Also fix FirebaseAdapter APIs.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    91b14ff View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    a6e3ac7 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    3d1b334 View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    fce67b7 View commit details
    Browse the repository at this point in the history
  42. test: fix incorrect tests

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    c58ac36 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    a37ef77 View commit details
    Browse the repository at this point in the history
  44. docs: add @return

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    af50ece View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    73a1d4d View commit details
    Browse the repository at this point in the history
  46. docs: small fixes

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    a93f254 View commit details
    Browse the repository at this point in the history
  47. feat: support Asymmetric Key

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    c041d85 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    f043dad View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    6a8efe6 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    f71eaa0 View commit details
    Browse the repository at this point in the history
  51. refactor: rename JWT to JWS in classnames

    It means the class is used for Signed JWT.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    340b144 View commit details
    Browse the repository at this point in the history
  52. refactor: move JWSGenerator up

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    cb1b227 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    0c9fc38 View commit details
    Browse the repository at this point in the history
  54. Configuration menu
    Copy the full SHA
    79dbac2 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    b9fdc66 View commit details
    Browse the repository at this point in the history
  56. feat: add JWSDecoder

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    d3cf816 View commit details
    Browse the repository at this point in the history
  57. feat: add JWTManager::decode()

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    7ab3021 View commit details
    Browse the repository at this point in the history
  58. refactor: JWT uses JWTManager

    and remove JWT::decodeJWT().
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    07c346b View commit details
    Browse the repository at this point in the history
  59. test: extract method

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    fd080bf View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    15f11df View commit details
    Browse the repository at this point in the history
  61. Configuration menu
    Copy the full SHA
    08dadcc View commit details
    Browse the repository at this point in the history
  62. docs: fix doc comment

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9e85269 View commit details
    Browse the repository at this point in the history
  63. docs: add "Signed"

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    d2cfe31 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    3ba4dfd View commit details
    Browse the repository at this point in the history
  65. Configuration menu
    Copy the full SHA
    695b0e4 View commit details
    Browse the repository at this point in the history
  66. docs: add setup instruction

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    f293a49 View commit details
    Browse the repository at this point in the history
  67. Configuration menu
    Copy the full SHA
    cb6f92b View commit details
    Browse the repository at this point in the history
  68. Configuration menu
    Copy the full SHA
    7b727af View commit details
    Browse the repository at this point in the history
  69. Configuration menu
    Copy the full SHA
    cb35a17 View commit details
    Browse the repository at this point in the history
  70. docs: change variable names

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    e8c0e45 View commit details
    Browse the repository at this point in the history
  71. Configuration menu
    Copy the full SHA
    61f06fa View commit details
    Browse the repository at this point in the history
  72. feat: improve Exception handling for FirebaseAdapter

    - add InvalidTokenException and use it
    - change Exception classes
    - add lang items for error messages
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    2dc1252 View commit details
    Browse the repository at this point in the history
  73. refactor: extract method

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    399ab22 View commit details
    Browse the repository at this point in the history
  74. refactor: early return

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    c9fd280 View commit details
    Browse the repository at this point in the history
  75. refactor: rename generateAccessToken() to generateToken()

    Since we have Access Tokens in Shield already.
    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    58eb3dd View commit details
    Browse the repository at this point in the history
  76. Configuration menu
    Copy the full SHA
    e824303 View commit details
    Browse the repository at this point in the history
  77. Configuration menu
    Copy the full SHA
    2b4d959 View commit details
    Browse the repository at this point in the history
  78. docs: fix coding style

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    aa0147d View commit details
    Browse the repository at this point in the history
  79. fix: missing try

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    ff1d04a View commit details
    Browse the repository at this point in the history
  80. fix: add missing try/catch

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    cfb6263 View commit details
    Browse the repository at this point in the history
  81. refactor: extract method

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9004082 View commit details
    Browse the repository at this point in the history
  82. test: add test for encode

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    48f3a51 View commit details
    Browse the repository at this point in the history
  83. refactor: update variable name

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    9179d8c View commit details
    Browse the repository at this point in the history
  84. refactor: by rector

    kenjis committed Apr 18, 2023
    Configuration menu
    Copy the full SHA
    1acb449 View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    168aaef View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    ce3e0d0 View commit details
    Browse the repository at this point in the history
  87. Configuration menu
    Copy the full SHA
    565e81c View commit details
    Browse the repository at this point in the history

Commits on Apr 19, 2023

  1. Configuration menu
    Copy the full SHA
    04d6645 View commit details
    Browse the repository at this point in the history
  2. test: update test method names

    kenjis committed Apr 19, 2023
    Configuration menu
    Copy the full SHA
    47546bb View commit details
    Browse the repository at this point in the history
  3. docs: improve explanation

    Co-authored-by: Michal Sniatala <michal@sniatala.pl>
    kenjis and michalsn authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    64b6f00 View commit details
    Browse the repository at this point in the history
  4. docs: fix ambiguous descriptions

    Co-authored-by: Michal Sniatala <michal@sniatala.pl>
    kenjis and michalsn authored Apr 19, 2023
    Configuration menu
    Copy the full SHA
    2845356 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2023

  1. docs: split code block

    kenjis committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a3efa82 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4aa454c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    63a6fdf View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. Configuration menu
    Copy the full SHA
    37d8c71 View commit details
    Browse the repository at this point in the history
  2. docs: add @todo in sample code

    kenjis committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    54ee18b View commit details
    Browse the repository at this point in the history
  3. lang: add translations

    Co-authored-by: Pooya Parsa Dadashi <pooya_parsa_dadashi@yahoo.com>
    kenjis and datamweb authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    6bf2eef View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    3117c17 View commit details
    Browse the repository at this point in the history
  5. docs: use JSON request

    kenjis committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    72047b7 View commit details
    Browse the repository at this point in the history
  6. config: comment out jwt authenticator

    It is an optional authenticator.
    kenjis committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    dcbdb28 View commit details
    Browse the repository at this point in the history
  7. docs: add JWT in README

    kenjis committed Apr 21, 2023
    Configuration menu
    Copy the full SHA
    1b9fdf9 View commit details
    Browse the repository at this point in the history