|
1 | 1 | = Authentication |
2 | 2 | :antora-page-url: /features/authentication/index.html |
| 3 | +:tabs-sync-option: |
3 | 4 |
|
4 | 5 | this is about authentication |
| 6 | + |
| 7 | +ifdef::asciidoctor-tabs-loaded[] |
| 8 | +.`FilterChain` Usage Example |
| 9 | +[tabs] |
| 10 | +==== |
| 11 | +Java:: |
| 12 | ++ |
| 13 | +[,java] |
| 14 | +---- |
| 15 | +public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { |
| 16 | + // do something before the rest of the application |
| 17 | + chain.doFilter(request, response); // invoke the rest of the application |
| 18 | + // do something after the rest of the application |
| 19 | +} |
| 20 | +---- |
| 21 | + |
| 22 | +Kotlin:: |
| 23 | ++ |
| 24 | +[,kotlin] |
| 25 | +---- |
| 26 | +fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain) { |
| 27 | + // do something before the rest of the application |
| 28 | + chain.doFilter(request, response) // invoke the rest of the application |
| 29 | + // do something after the rest of the application |
| 30 | +} |
| 31 | +---- |
| 32 | + |
| 33 | +Wide Table:: |
| 34 | ++ |
| 35 | +|=== |
| 36 | +|Spring Boot 2.x |ClientRegistration |
| 37 | + |
| 38 | +|`spring.security.oauth2.client.registration._[registrationId]_` |
| 39 | +|`registrationId` |
| 40 | + |
| 41 | +|`spring.security.oauth2.client.registration._[registrationId]_.client-id` |
| 42 | +|`clientId` |
| 43 | + |
| 44 | +|`spring.security.oauth2.client.registration._[registrationId]_.client-secret` |
| 45 | +|`clientSecret` |
| 46 | + |
| 47 | +|`spring.security.oauth2.client.registration._[registrationId]_.client-authentication-method` |
| 48 | +|`clientAuthenticationMethod` |
| 49 | + |
| 50 | +|`spring.security.oauth2.client.registration._[registrationId]_.authorization-grant-type` |
| 51 | +|`authorizationGrantType` |
| 52 | +|=== |
| 53 | ++ |
| 54 | +The table should fit within the tab panel and scroll horizontally. |
| 55 | +==== |
| 56 | +endif::[] |
| 57 | +ifndef::asciidoctor-tabs-loaded[] |
| 58 | +.`FilterChain` Usage Example |
| 59 | +==== |
| 60 | +.Java |
| 61 | +[source,java,role="primary"] |
| 62 | +---- |
| 63 | +public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) { |
| 64 | + // do something before the rest of the application |
| 65 | + chain.doFilter(request, response); // invoke the rest of the application |
| 66 | + // do something after the rest of the application |
| 67 | +} |
| 68 | +---- |
| 69 | + |
| 70 | +.Kotlin |
| 71 | +[source,kotlin,role="secondary"] |
| 72 | +---- |
| 73 | +fun doFilter(request: ServletRequest, response: ServletResponse, chain: FilterChain) { |
| 74 | + // do something before the rest of the application |
| 75 | + chain.doFilter(request, response) // invoke the rest of the application |
| 76 | + // do something after the rest of the application |
| 77 | +} |
| 78 | +---- |
| 79 | +==== |
| 80 | +endif::[] |
0 commit comments