Skip to content

Commit 502f081

Browse files
doc : README.md
1 parent 0bf390c commit 502f081

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,12 @@
5959

6060

6161
* Separated UserDetails implementation for Admin and Customer roles as an example. (This can be extended such as Admin, Customer, Seller and Buyer... by implementing ``UserDetailsServiceFactory``)
62+
* Authorization Code Flow with Optional PKCE, Authorization Consent and Single Page Application (XMLHttpRequest)
63+
* ROPC for scenarios where accessing a browser screen on the server is either unavailable or impractical
64+
* Application of Spring Rest Docs, Postman payloads provided
6265
* 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.)
63-
* As you are aware, the API ``/oauth2/token`` is what "spring-authorization-server" provides.
64-
* ``/api/v1/traditional-oauth/token`` is what this library implemented directly.
66+
* As you are aware, the API ``/oauth2/token``(Recommended) is what "spring-authorization-server" provides.
67+
* ``/api/v1/traditional-oauth/token``(Easily Customizable) is what this library implemented directly.
6568
* Success Payload
6669
```json
6770
{
@@ -85,9 +88,8 @@
8588
```
8689

8790
* In the following error payload, the 'message' shouldn't be exposed to clients; instead, the 'userMessage' should be.
88-
* Authorization Code Flow with Optional PKCE, Authorization Consent and Single Page Application (XMLHttpRequest)
89-
* ROPC for scenarios where accessing a browser screen on the server is either unavailable or impractical
90-
* Application of Spring Rest Docs, Postman payloads provided
91+
* Definitely, you can customize the payload sent to the client by implementing AuthenticationFailureHandler.
92+
* See the sample folder ``com.patternhelloworld.securityhelper.oauth2.client.config.securityimpl`` to understand how to implement the library.
9193

9294
## Dependencies
9395

0 commit comments

Comments
 (0)