{"id":23541,"date":"2015-07-23T16:04:20","date_gmt":"2015-07-23T10:34:20","guid":{"rendered":"https:\/\/2thenew.xyz\/blog\/?p=23541"},"modified":"2015-07-24T13:52:28","modified_gmt":"2015-07-24T08:22:28","slug":"override-login-and-logout-of-spring-security-in-grails","status":"publish","type":"post","link":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/","title":{"rendered":"Override login and logout of Spring Security in Grails"},"content":{"rendered":"<p>What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact.\u00a0My use case\u00a0was to make a third party SOAP API call to perform login\/logout sending user&#8217;s detail as parameter.<\/p>\n<p><strong>Override Login<\/strong><\/p>\n<p>Write own Authentication Provider class that extends <em>AbstractUserDetailsAuthenticationProvider<\/em> and override <em>authenticate<\/em> method. For reference we can see <a href=\"https:\/\/github.com\/spring-projects\/spring-security\/blob\/master\/core\/src\/main\/java\/org\/springframework\/security\/authentication\/dao\/AbstractUserDetailsAuthenticationProvider.java\" target=\"_blank\"><em>AbstractUserDetailsAuthenticationProvider<\/em><\/a>.<\/p>\n<p>Next we need to :<\/p>\n<p>1. Create bean of our custom Authentication Provider. It can be done in <em>Resources.groovy<\/em> by writing<\/p>\n<p>[java] beans = {<br \/>\n       &#8230;.<br \/>\n       customAuthenticationProvider(CustomAuthenticationProvider)<br \/>\n       &#8230;.<br \/>\n } [\/java]<\/p>\n<p>2. Register bean of our custom AuthenticationProvider . It can be done in <em>BootStrap.groovy<\/em> by writing :<\/p>\n<p>[java]<br \/>\ndef init {<br \/>\n    &#8230;<br \/>\n    SpringSecurityUtils.registerProvider(&quot;customAuthenticationProvider&quot;)<br \/>\n     &#8230;<br \/>\n}[\/java]<\/p>\n<p><strong>Override\u00a0Logout<\/strong><\/p>\n<p>We have come to know three ways to do this :<\/p>\n<p>1. In most of the cases, we can write our custom task in target (action of corresponding link i.e. Logout, for example &#8216;index&#8217; action of &#8216;LogoutController&#8217;) then redirect flow to\u00a0<em>j_spring_security_logout.<\/em><\/p>\n<p>2. Write own LogoutHandler class that extends <em>LogoutHandler<\/em> and override <em>logout<\/em> method. For reference we can see <a href=\"https:\/\/github.com\/spring-projects\/spring-security\/blob\/master\/web\/src\/main\/java\/org\/springframework\/security\/web\/authentication\/logout\/SecurityContextLogoutHandler.java\" target=\"_blank\"><em>SecurityContextLogoutHandler<\/em><\/a>.<\/p>\n<p>Next we need to create bean and register same of our custom LogoutHandler as we did for our custom AuthenticationProvider. Do I need to say that this time we need to write &#8220;SpringSecurityUtils.registerLogoutHandler&#8221; instead of &#8220;SpringSecurityUtils.registerProvider&#8221;? \u00a0 :-P.<\/p>\n<p>3. If we need to be sure that we are making third party API call once Spring&#8217;s logout was completed successfully, we can write our own Session Timeout Listener. It can be done in two ways :<\/p>\n<p>a) Implementing <em>HttpSessionListener<\/em> :<\/p>\n<p>[java] <\/p>\n<p>public class MySessionListener implements HttpSessionListener {<br \/>\n      public void sessionDestroyed(HttpSessionEvent sessionEvent) {<br \/>\n      \/* Do whatever we want *\/<br \/>\n      }<br \/>\n}[\/java]<\/p>\n<p>To see this listener working, we need to add this listener in servlet context. To do this, In BootStrap.groovy, add<\/p>\n<p>[java] def init = { servletContext &#8211; &gt;<br \/>\n servletContext.addListener(MySessionListener)<br \/>\n }[\/java]<\/p>\n<p>b) Implementing <em>ApplicationListener<\/em> :<\/p>\n<p>[java]<br \/>\npublic class SessionTimeoutListener implements ApplicationListener&lt;SessionDestroyedEvent&gt; {<br \/>\n    @Override<br \/>\n    public void onApplicationEvent(SessionDestroyedEvent event) {<br \/>\n       \/*Do whatever we want to do. For example, To get Username of logged out        user, we can write next block of code*\/<br \/>\n       SecurityContext lstSecurityContext = event.getSecurityContext();<br \/>\n       UserDetails ud;<br \/>\n       for (SecurityContext securityContext : lstSecurityContext) {<br \/>\n         ud = (UserDetails) securityContext.getAuthentication().getPrincipal();<br \/>\n         System.out.println(&quot;Username of logged out user :&quot; + ud.username)<br \/>\n      }<br \/>\n    }<br \/>\n } [\/java]<\/p>\n<p>To see it working, we just need to create it&#8217;s bean in Resources.groovy (As we did for CustomAuthenticationProvider and CustomLogoutHandler above).<\/p>\n<p>Hope this helps \ud83d\ude42 If it doesn&#8217;t then let us help you with your use case. Comment your use case below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact.\u00a0My use case\u00a0was to make a third party SOAP API call to perform login\/logout sending user&#8217;s detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method. [&hellip;]<\/p>\n","protected":false},"author":230,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":68,"footnotes":""},"categories":[1],"tags":[2018,4840,672],"class_list":["post-23541","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bean-overriding-in-grails","tag-grails","tag-spring-security"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user&#039;s detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Aman Kumar Mishra\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Override login and logout of Spring Security in Grails | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user&#039;s detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"article:tag\" content=\"technology\" \/>\n\t\t<meta property=\"article:tag\" content=\"bean overriding in grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"grails\" \/>\n\t\t<meta property=\"article:tag\" content=\"spring security\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2015-07-23T10:34:20+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2015-07-24T08:22:28+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Override login and logout of Spring Security in Grails | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user&#039;s detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#article\",\"name\":\"Override login and logout of Spring Security in Grails | TO THE NEW Blog\",\"headline\":\"Override login and logout of Spring Security in Grails\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amanmishra\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2015-07-23T16:04:20+05:30\",\"dateModified\":\"2015-07-24T13:52:28+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#webpage\"},\"articleSection\":\"Technology, bean overriding in grails, Grails, spring security\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"position\":2,\"name\":\"Technology\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#listItem\",\"name\":\"Override login and logout of Spring Security in Grails\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#listItem\",\"position\":3,\"name\":\"Override login and logout of Spring Security in Grails\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/technology\\\/#listItem\",\"name\":\"Technology\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amanmishra\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amanmishra\\\/\",\"name\":\"Aman Kumar Mishra\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#authorImage\",\"url\":\"https:\\\/\\\/newersworld-sf-static.tothenew.net\\\/prod\\\/profilePicFolder\\\/897dd702-e197-4213-b80a-d8314c349e55_417-Aman-Kumar-Mishra-PROFILEPICTURE.jpeg\",\"width\":96,\"height\":96,\"caption\":\"Aman Kumar Mishra\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/\",\"name\":\"Override login and logout of Spring Security in Grails | TO THE NEW Blog\",\"description\":\"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\\\/logout sending user's detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/override-login-and-logout-of-spring-security-in-grails\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amanmishra\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/amanmishra\\\/#author\"},\"datePublished\":\"2015-07-23T16:04:20+05:30\",\"dateModified\":\"2015-07-24T13:52:28+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Override login and logout of Spring Security in Grails | TO THE NEW Blog","description":"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user's detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.","canonical_url":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#article","name":"Override login and logout of Spring Security in Grails | TO THE NEW Blog","headline":"Override login and logout of Spring Security in Grails","author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/amanmishra\/#author"},"publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"},"datePublished":"2015-07-23T16:04:20+05:30","dateModified":"2015-07-24T13:52:28+05:30","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#webpage"},"isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#webpage"},"articleSection":"Technology, bean overriding in grails, Grails, spring security"},{"@type":"BreadcrumbList","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","position":1,"name":"Home","item":"https:\/\/2thenew.xyz\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","position":2,"name":"Technology","item":"https:\/\/2thenew.xyz\/blog\/category\/technology\/","nextItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#listItem","name":"Override login and logout of Spring Security in Grails"},"previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#listItem","position":3,"name":"Override login and logout of Spring Security in Grails","previousItem":{"@type":"ListItem","@id":"https:\/\/2thenew.xyz\/blog\/category\/technology\/#listItem","name":"Technology"}}]},{"@type":"Organization","@id":"https:\/\/2thenew.xyz\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/2thenew.xyz\/blog\/"},{"@type":"Person","@id":"https:\/\/2thenew.xyz\/blog\/author\/amanmishra\/#author","url":"https:\/\/2thenew.xyz\/blog\/author\/amanmishra\/","name":"Aman Kumar Mishra","image":{"@type":"ImageObject","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#authorImage","url":"https:\/\/newersworld-sf-static.tothenew.net\/prod\/profilePicFolder\/897dd702-e197-4213-b80a-d8314c349e55_417-Aman-Kumar-Mishra-PROFILEPICTURE.jpeg","width":96,"height":96,"caption":"Aman Kumar Mishra"}},{"@type":"WebPage","@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#webpage","url":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/","name":"Override login and logout of Spring Security in Grails | TO THE NEW Blog","description":"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user's detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/2thenew.xyz\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/#breadcrumblist"},"author":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/amanmishra\/#author"},"creator":{"@id":"https:\/\/2thenew.xyz\/blog\/author\/amanmishra\/#author"},"datePublished":"2015-07-23T16:04:20+05:30","dateModified":"2015-07-24T13:52:28+05:30"},{"@type":"WebSite","@id":"https:\/\/2thenew.xyz\/blog\/#website","url":"https:\/\/2thenew.xyz\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/2thenew.xyz\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"article","og:title":"Override login and logout of Spring Security in Grails | TO THE NEW Blog","og:description":"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user's detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.","og:url":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/","og:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","article:tag":["technology","bean overriding in grails","grails","spring security"],"article:published_time":"2015-07-23T10:34:20+00:00","article:modified_time":"2015-07-24T08:22:28+00:00","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Override login and logout of Spring Security in Grails | TO THE NEW Blog","twitter:description":"What if our use case is to perform any custom task for login and logout while keeping the beauty of spring security intact. My use case was to make a third party SOAP API call to perform login\/logout sending user's detail as parameter. Override Login Write own Authentication Provider class that extends AbstractUserDetailsAuthenticationProvider and override authenticate method.","twitter:image":"https:\/\/2thenew.xyz\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"23541","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"article","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 15:30:19","updated":"2024-02-29 09:26:53","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/2thenew.xyz\/blog\/category\/technology\/\" title=\"Technology\">Technology<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tOverride login and logout of Spring Security in Grails\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/2thenew.xyz\/blog"},{"label":"Technology","link":"https:\/\/2thenew.xyz\/blog\/category\/technology\/"},{"label":"Override login and logout of Spring Security in Grails","link":"https:\/\/2thenew.xyz\/blog\/override-login-and-logout-of-spring-security-in-grails\/"}],"_links":{"self":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/23541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/users\/230"}],"replies":[{"embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/comments?post=23541"}],"version-history":[{"count":0,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/posts\/23541\/revisions"}],"wp:attachment":[{"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/media?parent=23541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/categories?post=23541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2thenew.xyz\/blog\/wp-json\/wp\/v2\/tags?post=23541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}