You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Complete separation of the library (API) and the client for testing it
32
+
## Features
33
+
34
+
* Complete separation of the library and the client
35
+
* Library : API
36
+
* Client : DOC, Integration tester
30
37
* Immediate Permission (Authority) Check: Not limited to verifying the token itself, but also ensuring real-time validation of any updates to permissions in the database.
31
38
* Token Introspector: Enable the ``/oauth2/introspect`` endpoint to allow multiple resource servers to verify the token's validity and permissions with the authorization server.
32
-
33
39
* Set up the same access & refresh token APIs on both ``/oauth2/token`` and on our controller layer such as ``/api/v1/traditional-oauth/token``, both of which function same and have `the same request & response payloads for success and errors`. (However, ``/oauth2/token`` is the standard that "spring-authorization-server" provides.)
34
40
* As you are aware, the API ``/oauth2/token`` is what "spring-authorization-server" provides.
35
41
*``/api/v1/traditional-oauth/token`` is what this library implemented directly.
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/response/error/GlobalExceptionHandler.java
* Once you create 'GlobalExceptionHandler', you should insert the following two (authenticationException, authorizationException) as default. Otherwise, 'unhandledExceptionHandler' is prior to 'io.github.patternknife.securityhelper.oauth2.api.config.security.response.error.handler.SecurityKnifeExceptionHandler'.
29
28
* "OrderConstants.SECURITY_KNIFE_EXCEPTION_HANDLER_ORDER - 1" means this is prior to "SecurityKnifeExceptionHandler"
Copy file name to clipboardExpand all lines: client/src/main/java/com/patternknife/securityhelper/oauth2/client/config/securityimpl/introspector/CustomResourceServerTokenIntrospector.java
Copy file name to clipboardExpand all lines: client/src/main/resources/application.properties
+7-3
Original file line number
Diff line number
Diff line change
@@ -77,10 +77,14 @@ spring.mvc.view.suffix=.html
77
77
78
78
79
79
# Introspection type configuration:
80
-
# - api: The Resource Server sends introspection requests to the Authorization Server (better scalability)
81
-
# - database: The Resource Server and Authorization Server share the same database (faster performance)
80
+
# - api: The Resource Server sends introspection requests to the Authorization Server (high traffic, better scalability, instant authorization check)
81
+
# - database: The Resource Server and Authorization Server share the same database (low traffic, low scalability, instant authorization check)
82
+
# - decode: The Resource Server decodes the Access Token according to the JWT algorithm. (no traffic, better scalability, no instant authorization check)
82
83
# [WARNING] api: Some test codes are currently NOT working due to the following introspection URI calls
Copy file name to clipboardExpand all lines: lib/src/main/java/io/github/patternknife/securityhelper/oauth2/api/config/security/converter/auth/endpoint/PasswordAccessTokenRequestConverter.java
+1-1
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ public Authentication convert(HttpServletRequest request) {
0 commit comments