|
1 |
| -= PMS-Security-OAuth2 |
| 1 | += POC : Spring Security 6 Oauth2 Password JPA Implementation |
2 | 2 | :doctype: book
|
3 | 3 | :icons: font
|
4 | 4 | :source-highlighter: highlightjs
|
|
9 | 9 | :sectanchors:
|
10 | 10 |
|
11 | 11 | == Notice
|
12 |
| -- ``/api/v1/traditional-oauth/token`` has the same function as ``/oauth2/token``, which is included in Spring Security, which can be more regarded as secure. |
| 12 | +- ``/api/v1/traditional-oauth/token`` has the same function as ``/oauth2/token``, which is included in Spring Security, which can be more regarded as secure. |
| 13 | + |
| 14 | +== Authentication |
| 15 | + |
| 16 | + |
| 17 | +=== Access Token |
| 18 | +==== Request |
| 19 | +===== Payload |
| 20 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-access-token/http-request.adoc[] |
| 21 | +====== Header |
| 22 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-access-token/request-headers.adoc[] |
| 23 | +====== Parameters |
| 24 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-access-token/form-parameters.adoc[] |
| 25 | +====== Body |
| 26 | +'application/x-www-form-urlencoded' |
| 27 | + |
| 28 | +==== Response |
| 29 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-access-token/response-body.adoc[] |
| 30 | + |
| 31 | + |
| 32 | +=== Refresh Token |
| 33 | + |
| 34 | +==== Request |
| 35 | +===== Payload |
| 36 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-refresh-token/http-request.adoc[] |
| 37 | +====== Header |
| 38 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-refresh-token/request-headers.adoc[] |
| 39 | +====== Parameters |
| 40 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-refresh-token/form-parameters.adoc[] |
| 41 | +====== Body |
| 42 | +'application/x-www-form-urlencoded' |
| 43 | + |
| 44 | +==== Response |
| 45 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-refresh-token/response-body.adoc[] |
| 46 | + |
| 47 | + |
| 48 | +=== Logout |
| 49 | + |
| 50 | +==== Request |
| 51 | +===== Payload |
| 52 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-customer-logout/http-request.adoc[] |
| 53 | +====== Header |
| 54 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-customer-logout/request-headers.adoc[] |
| 55 | +====== Parameters |
| 56 | + |
| 57 | +X |
| 58 | + |
| 59 | +====== Body |
| 60 | + |
| 61 | +X |
| 62 | + |
| 63 | +==== Response |
| 64 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-customer-logout/response-body.adoc[] |
| 65 | +include::../../../client/target/generated-snippets/customer-integration-test/test_-same-app-tokens-use-same-access-token_exposed/oauth-customer-logout/response-fields.adoc[] |
0 commit comments