From 148e7843bffe4f5990d3ce9277331d19b3bcae0e Mon Sep 17 00:00:00 2001 From: Seungrae Date: Wed, 3 Jul 2024 22:16:11 +0900 Subject: [PATCH] Fix typos and formatting in documentation --- .../ROOT/pages/servlet/authorization/method-security.adoc | 2 +- .../pages/servlet/saml2/login/authentication-requests.adoc | 6 +++--- docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc index fdd3a7dae38..1a37ae93a9e 100644 --- a/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc +++ b/docs/modules/ROOT/pages/servlet/authorization/method-security.adoc @@ -240,7 +240,7 @@ static RoleHierarchy roleHierarchy() { Kotlin:: + -[source,java,role="secondary"] +[source,kotlin,role="secondary"] ---- companion object { @Bean diff --git a/docs/modules/ROOT/pages/servlet/saml2/login/authentication-requests.adoc b/docs/modules/ROOT/pages/servlet/saml2/login/authentication-requests.adoc index 76f4a236146..4e0ec21d32e 100644 --- a/docs/modules/ROOT/pages/servlet/saml2/login/authentication-requests.adoc +++ b/docs/modules/ROOT/pages/servlet/saml2/login/authentication-requests.adoc @@ -87,7 +87,7 @@ RelyingPartyRegistration relyingPartyRegistration = RelyingPartyRegistration.wit Kotlin:: + -[source,java,role="secondary"] +[source,kotlin,role="secondary"] ---- var relyingPartyRegistration: RelyingPartyRegistration = RelyingPartyRegistration.withRegistrationId("okta") @@ -96,7 +96,7 @@ var relyingPartyRegistration: RelyingPartyRegistration = // ... .wantAuthnRequestsSigned(false) } - .build(); + .build() ---- ====== @@ -141,7 +141,7 @@ var relyingPartyRegistration: RelyingPartyRegistration = ) } } - .build(); + .build() ---- ====== diff --git a/docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc b/docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc index 0721d9b15eb..c29f7a35a7f 100644 --- a/docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc +++ b/docs/modules/ROOT/pages/servlet/saml2/login/overview.adoc @@ -1000,12 +1000,12 @@ Collection registrations = RelyingPartyRegistrations .entityId("https://example.org/saml2/sp") .build() ) - .collect(Collectors.toList())); + .collect(Collectors.toList()); ---- Kotlin:: + -[source,java,role="secondary"] +[source,kotlin,role="secondary"] ---- var registrations: Collection = RelyingPartyRegistrations .collectionFromMetadataLocation("https://example.org/saml2/idp/metadata.xml") @@ -1015,7 +1015,7 @@ var registrations: Collection = RelyingPartyRegistrati .assertionConsumerServiceLocation("{baseUrl}/login/saml2/sso") .build() } - .collect(Collectors.toList())); + .collect(Collectors.toList()) ---- ======