Skip to content

Commit

Permalink
Update grails-shiro plugin to version 5.0.0 (#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmcneil authored Nov 15, 2024
1 parent a6d7f01 commit 731d23c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions grails-plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -2746,16 +2746,16 @@
"Apache-2.0"
],
"issueTrackerUrl": "https://github.com/nerdErg/grails-shiro/issues",
"latestVersion": "4.4",
"updated": "2021-04-18T13:56:43.000Z",
"latestVersion": "5.0.0",
"updated": "2024-11-14T11:14:11.000Z",
"systemIds": [
"org.grails.plugins:grails-shiro"
"org.nerderg.plugins:grails-shiro"
],
"vcsUrl": "https://github.com/nerdErg/grails-shiro"
},
"documentationUrl": "https://nerderg.com/docs/shiro/guide.html",
"mavenMetadataUrl": null,
"readme": "<div id=\"toc\" class=\"toc\">\n<div id=\"toctitle\">Table of Contents</div>\n<ul class=\"sectlevel1\">\n<li><a href=\"#_versions\">Versions</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_numbering\">Numbering</a></li>\n<li><a href=\"#_maintenance\">Maintenance</a></li>\n<li><a href=\"#_documentation_and_source\">Documentation and Source</a></li>\n</ul>\n</li>\n<li><a href=\"#_installation\">Installation</a></li>\n<li><a href=\"#_getting_started\">Getting started</a></li>\n<li><a href=\"#_version_change_log\">Version change log</a>\n<ul class=\"sectlevel2\">\n<li><a href=\"#_version_4_4\">version 4.4</a></li>\n<li><a href=\"#_version_3_3_4_3\">version 3.3 &amp; 4.3</a></li>\n<li><a href=\"#_version_4_2\">version 4.2</a></li>\n<li><a href=\"#_version_4_1\">version 4.1</a></li>\n<li><a href=\"#_version_3_1\">version 3.1</a></li>\n<li><a href=\"#_version_3_0\">version 3.0</a></li>\n</ul>\n</li>\n<li><a href=\"#_building_from_source\">Building from source</a></li>\n<li><a href=\"#_publishing\">Publishing</a></li>\n<li><a href=\"#_kudos\">Kudos</a></li>\n</ul>\n</div>\n<div id=\"preamble\">\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p><span class=\"image\"><a class=\"image\" href=\"https://travis-ci.org/nerdErg/grails-shiro\"><img src=\"https://travis-ci.org/nerdErg/grails-shiro.svg?branch=master\" alt=\"Build Status\"></a></span></p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_versions\"><a class=\"link\" href=\"#_versions\">Versions</a></h2>\n<div class=\"sectionbody\">\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Latest <strong>released</strong> versions 3.4, 4.4</p>\n</li>\n<li>\n<p>Latest working version 3.4, 4.4 (in this repo)</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>This is the Grails Shiro plugin for grails version 4.0.x and Shiro 1.5.3. This was derived from the Grails 2.x version\n(<a href=\"https://github.com/pledbrook/grails-shiro\" class=\"bare\">https://github.com/pledbrook/grails-shiro</a>).</p>\n</div>\n<div class=\"paragraph\">\n<p>We pretty much re-wrote the plugin for Grails 3 and to simplify the use, improve the documentation and make it easier to\nmaintain. There are lots of changes please check out the\n<a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc\">Guide</a> in the docs directory.</p>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_numbering\"><a class=\"link\" href=\"#_numbering\">Numbering</a></h3>\n<div class=\"paragraph\">\n<p>In general the version number is following the Grails major version it supports, then release. e.g.</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>3.4 = Grails 3 plugin release 4\n4.4 = Grails 4 plugin release 4</pre>\n</div>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_maintenance\"><a class=\"link\" href=\"#_maintenance\">Maintenance</a></h3>\n<div class=\"paragraph\">\n<p>Although we have now published the Grails 4 version of this plugin we will continue to maintain the Grails 3 version\nbackporting features till July 2020 where possible.</p>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_documentation_and_source\"><a class=\"link\" href=\"#_documentation_and_source\">Documentation and Source</a></h3>\n<div class=\"paragraph\">\n<p>In general the documentation applies to both Grails 3 and 4 versions of the plugin. Source code including specific documentation\nfor the Grails 3 version can be found in the <strong>Grails-3 Branch</strong>.</p>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_installation\"><a class=\"link\" href=\"#_installation\">Installation</a></h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>To install, add this to your <code>build.gradle</code> dependencies for Grails 4:</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>compile \"org.grails.plugins:grails-shiro:4.4\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>and this for Grails 3:</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>compile \"org.grails.plugins:grails-shiro:3.4\"</pre>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_getting_started\"><a class=\"link\" href=\"#_getting_started\">Getting started</a></h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>If you&#8217;re implementing your security from scratch, then you can simply install grails-shiro by adding</p>\n</div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>compile \"org.grails.plugins:grails-shiro:4.4\"</pre>\n</div>\n</div>\n<div class=\"paragraph\">\n<p>to your build.gradle dependencies and typing\nshiro quick start, <a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc#shiro-quick-start\">'grails shiro-quick-start'</a>.</p>\n</div>\n<div class=\"paragraph\">\n<p>This will create a ShiroWildcardDbRealm in your <code>grails-app/realms</code> directory and make a ShiroUser and ShiroRole domain\nclass. It will also create an AuthController to let you log in. Check out\n<a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc#wildcard-db-realm\">Wildcard DB Realm</a> for how you might populate\na couple of users using Boostrap.groovy.</p>\n</div>\n<div class=\"paragraph\">\n<p>Now to Control access to a Controller add an Interceptor for that controller using\n<code><a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc#create-shiro-controller-interceptor\">grails create-shiro-controller-interceptor</a> MyController</code> which will add\n<a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc#permission-string-conventions\">access control by convention</a>.</p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_version_change_log\"><a class=\"link\" href=\"#_version_change_log\">Version change log</a></h2>\n<div class=\"sectionbody\">\n<div class=\"sect2\">\n<h3 id=\"_version_4_4\"><a class=\"link\" href=\"#_version_4_4\">version 4.4</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Upgrade shiro to version 1.7.1 fixing CVE-2020-17523</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_version_3_3_4_3\"><a class=\"link\" href=\"#_version_3_3_4_3\">version 3.3 &amp; 4.3</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Fixed Annotation redirect missing context path - <a href=\"https://github.com/nerdErg/grails-shiro/issues/16\" class=\"bare\">https://github.com/nerdErg/grails-shiro/issues/16</a></p>\n</li>\n<li>\n<p>Upgrade to shiro 1.5.3</p>\n</li>\n</ul>\n</div>\n<div class=\"admonitionblock warning\">\n<table>\n<tr>\n<td class=\"icon\">\n<div class=\"title\">Warning</div>\n</td>\n<td class=\"content\">\nThis introduces a small breaking change. Annotations now use the login and unauthorized settings not URL Mappings\nto set where they redirect to.\n</td>\n</tr>\n</table>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_version_4_2\"><a class=\"link\" href=\"#_version_4_2\">version 4.2</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>upgrade to shiro 1.4.2</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_version_4_1\"><a class=\"link\" href=\"#_version_4_1\">version 4.1</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>ported to Grails version 4.0.0 (thanks Peter Legen/animator013 for you help!)</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_version_3_1\"><a class=\"link\" href=\"#_version_3_1\">version 3.1</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>Added ability to set the remember me cipherKey or the length of the randomly generated key</p>\n</li>\n<li>\n<p>Fix for onNotAuthenticated and onUnauthorized not working correctly (<a href=\"https://github.com/nerdErg/grails-shiro/pull/6\">Can&#8217;t be invoked on metaclass</a>)</p>\n</li>\n</ul>\n</div>\n</div>\n<div class=\"sect2\">\n<h3 id=\"_version_3_0\"><a class=\"link\" href=\"#_version_3_0\">version 3.0</a></h3>\n<div class=\"ulist\">\n<ul>\n<li>\n<p>re-write from old Grails 2 plugin see updates in the <a href=\"https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc\">Guide</a></p>\n</li>\n</ul>\n</div>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_building_from_source\"><a class=\"link\" href=\"#_building_from_source\">Building from source</a></h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>To build the plugin yourself and install it from this repo:</p>\n</div>\n<div class=\"olist arabic\">\n<ol class=\"arabic\">\n<li>\n<p>clone or fork this repo to your machine</p>\n</li>\n<li>\n<p>run <code>gradle install</code> and that will build, test, install it to your local maven repo (~/.m2)</p>\n</li>\n<li>\n<p>profit!</p>\n</li>\n</ol>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_publishing\"><a class=\"link\" href=\"#_publishing\">Publishing</a></h2>\n<div class=\"sectionbody\">\n<div class=\"paragraph\">\n<p>If you have the credentials to publish the plugin just run the <code>gradle bintrayUpload</code> task.</p>\n</div>\n</div>\n</div>\n<div class=\"sect1\">\n<h2 id=\"_kudos\"><a class=\"link\" href=\"#_kudos\">Kudos</a></h2>\n<div class=\"sectionbody\">\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https://github.com/pledbrook/grails-shiro/commits?author=pledbrook\">Peter Ledbrook</a> looking after original grails shiro plugin</p>\n</li>\n<li>\n<p><a href=\"https://github.com/pledbrook/grails-shiro/commits?author=yellowsnow\">yellowsnow</a></p>\n</li>\n<li>\n<p><a href=\"https://github.com/pledbrook/grails-shiro/commits?author=apandichi\">apandichi</a></p>\n</li>\n<li>\n<p><a href=\"https://github.com/animator013\">animator013 - Peter Legen</a></p>\n</li>\n<li>\n<p>and <a href=\"https://github.com/pledbrook/grails-shiro/graphs/contributors\">others</a> for work on the previous version of the plugin.</p>\n</li>\n</ul>\n</div>\n<div class=\"paragraph\">\n<p>Thank you to everyone who provides feedback!</p>\n</div>\n</div>\n</div>"
"mavenMetadataUrl": "https://repo1.maven.org/maven2/org/nerderg/plugins/grails-shiro/maven-metadata.xml",
"readme": "This is the Grails Shiro plugin for Grails version 5+ and Shiro 2.0.1. ee https://github.com/nerdErg/grails-shiro/blob/master/docs/Guide.adoc"
},
{
"bintrayPackage": {
Expand Down

0 comments on commit 731d23c

Please sign in to comment.