snimavat / nimble Goto Github PK
View Code? Open in Web Editor NEWThis project forked from bradleybeddoes/nimble
Nimble Security Grails Plugin
License: Other
This project forked from bradleybeddoes/nimble
Nimble Security Grails Plugin
License: Other
nothing really seems to be happening
there is support for roles and permissions, but groups are the other concept in nimble. it would be nice to be able to specify a security constraint based on a group.
I've added custom fields to Profile (extending grails.plugin.nimble.core.ProfileBase) and User (extending grails.plugin.nimble.core.UserBase) classes (which were created by jack-be-nimble script), however I cannot quite figure out what is the right way to make these fields viewable and editable in the Nimble admin screens.
I'd like to reuse the Nimble admin screens to the degree possible, just adding the extra fields to them where applicable (some are references to other tables, to be presented as drop-downs), as I quite like the Nimble admin screens.
Probably some templates need to be copied from somewhere and overridden, or added to, but I cannot quite find where this approach is documented.
Currently remoteAddr for login record is taken using request.getRemoteAddr(). This does not work when the application is behind a proxy or loadbalancer.
Update plugin itself to grails 2.2.4
Remove oauth and openid support for now, we can may add it again in new version of nimble or develop separate plugin for nimble oauth and openid.
I use the plugin version 0.7 in Grails 2.4.4 and run the web-app successfully after resolved some dependency problems. When i navigate to "http://localhost:8080/dhydb/main" the following exception occurred:
URI
/dhydb/login
Class
java.lang.IllegalArgumentException
Message
No module found with name [nimble-login]
After login, at line 62: userService.createLoginRecord(request) in grails-app\controllers\grails\plugin\nimble\core\AuthController.groovy I get a NullPointerException:
URI
/MyApp/auth/signin
Class
java.lang.NullPointerException
Message
Cannot invoke method createLoginRecord() on null object
It seems as if UserService isn't injected and thus is null. Nevertheless, UserService.groovy is present in \target\work\plugins\nimble-0.5.1\grails-app\services\grails\plugin\nimble\core.
I tried in BuildConfig.groovy both
plugins {
// ...
compile ":nimble:0.5.2"
}
and also :nimble:0.5.1.
It is likely some issue with my configuration / project, but I think I did everything according to instructions, and all my other plugins work fine.
I'm using Grails 2.3.0.RC1.
Please advise.
Checking federated checkbox for an user will cause the show user screen for that user to fail with below error
Template not found for name [/templates/nimble/user/federationinformation] and path [/templates/nimble/user/_federationinformation.gsp]. Stacktrace follows:
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Template not found for name [/templates/nimble/user/federationinformation] and path [/templates/nimble/user/_federationinformation.gsp]
Compile error during compilation with javac.
C:\Users\sbansal\IdeaProjects\untitled3\target\work\plugins\cache-1.1.1\src\java\grails\plugin\cache\web\GenericResponseWrapper.java:154: error: method does not override or implement a method from a supertype
@OverRide
^
C:\Users\sbansal\IdeaProjects\untitled3\target\work\plugins\cache-1.1.1\src\java\grails\plugin\cache\web\filter\PageFragmentCachingFilter.java:398: error: cannot find symbol
contentType = response.getContentType();
^
symbol: method getContentType()
location: variable response of type HttpServletResponse
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
has a <r:layoutResources/> tag. it should not have one.
Upgrade forgot password screen to use bootstrap
upgrade registration screen to use bootstrap
Currently nimble header title is always 'Nimble' and not possible to change it without overriding whole layout. Make it possible to configure the title.
Eg: showing 21 to 30 of total 100 users
Currently nimble redirects users to "/" if no target URI is present in params. Add configuration option to where to redirect user after login
upgrade login screen to use bootstrap
i am having a go at porting it to foundation 5 and was wondering if anyone else was thinking along the same lines.
style pagination with bootstrap
just put the appropriate manifests in grails-app/assets/{stylesheets,javascripts}
i have all the necessary assets in my application, so this is not necessary. but it might be of help to others.
side navigation : Indicate currently active menu option
Upgrade to depend on shiro plugin version 1.2.0
login history should show total numbers of logins.
like 20 most recents logins of total 100
a lot of issues starting from cache plug-in, a lot of issue appears when I compile just after installation.
I resorted the plug-in order before the cache plugin, but again. same errors poped up. I stopped the default cache pluging that comes with Grails 2.3.7. added cache & webxml latest plug-ins. it compiled with minor issues because of deprecated API methods called by Nimble. please have a look. I'm new to Nimble and thought to give it a try, after some Google researches. I think it is a promising plugin. please let me know if it is no more maintained, so I can search for an alternate, if you have no plan to go after that. Thank you.
i'm updating to asset-pipeline because resources is no longer supported/maintained.
i was having issues when the javascript was minified. so i looked around on the internet to see if other people had the same problem.
during my travels i discovered that the jquery.pstrength component was released around 2006 and has not been changed/supported/upgraded since then. there also does not appear to be anyone claiming ownership (that i could see).
so you might consider replacing it with one of the other password strength plugins.
i am using jquery-pwstrength-bootstrap which was a trivial change.
[WARNING] Property [first] of domain class grails.plugin.nimble.core.LevelPermission has type [grails.plugin.nimble.core.LevelPermission] and doesn't support constraint [minSize]. This constraint will not be checked during validation.
I cannot work out what was the intent of the constraint.
Provide support for impersonating users. Administrators can choose an user to impersonate and access site from user's perspective.
Remove old styles, icons and jqeury ui related stuff
Can't log in using user admin and password admiN123! at the Nimble demo at:
Update jquery.jgrowl to latest version
We no longer need this, We are using resource bundles, host apps can use bundles provided by nimble and can override bundles as they choose.
We have no plan to support followers directly into nimble, remove these fields
modularize css into different files like layout, widgets, typography etc so that applications can override whatever specific resource they want
We no longer need jqury url, and we are using bootstrap for tooltips so we dont need jquery bt
Due to this change: a65bcab#diff-58
Only the nimble mail templates are copied into $baseDir/grails-app/views/nimble so none of them can be modified. This is a problem because we can't make any changes to the default UI's.
Hi I'm new to grails, and have been experimenting with this plugin. I was wondering if there is there a way to configure table field names? When I tried to run nimble on sql server, there are several errors because some field names are sql keywords. I tried to add the following in the NimbleConfig.groovy:
fieldnames {
external="is_external"
}
But this doesnt seem to get picked up, and I still see keyword related sql syntax errors.
In several places where you want to assign an entity to another, such as in the User Detail view where they can "Add a Group", there is a search bar that allows the user to search for the group they want. That is excellent, but it relies on them knowing what to search for.
It is often a lot easier for the user if you also have a combo-box next to the search field that is pre-populated with all the existing Groups, or Roles or Users, etc... There is plenty of room on the same line as the search widget to place the combo box and then the user can use which ever one is most convenient.
ex: Add Group:
-existing Groups in combo box- -search field- -button- -button-
[[...Project Coordinators....||.v.]] {(...........................)} [.Search.][..Close..]
officially grails.plugin.xx was decided to be the standard for plugin package name.
Anyway we are publishing it almost like a new plugin, and there are other breaking changes as well. Lets rename package to grails.plugin.nimble instead of grails.plugins.nimble
Currently nimble doesn't allow previously used passwords, add configuration option to allow previously used passwords
In Grails 2.X org.codehaus.groovy.grails.commons.ConfigurationHolder is deprecated and these groovy classes use it.
/nimble/core/Group.groovy
/nimble/core/LevelPermission.groovy
/nimble/core/LoginRecord.groovy
/nimble/core/Permission.groovy
/nimble/core/ProfileBase.groovy
/nimble/core/Role.groovy
/nimble/core/Url.groovy
/nimble/core/UserBase.groovy
Can be fixed using grailsApplication injection. OR "import grails.util.Holders as ConfigurationHolder"
Do you have plans to upgrade to Bootstrap 3?
I'm just adding facebook realm to the plugin and I wonder if there are any plans for that in the nearest future?
I'm using old nimble as a pattern.
Getting this error as soon as I put the compile directive in the plugins area. (Grails: 2.3.1)
/Users/<>/projects/remember/target/work/plugins/cache-1.1.1/src/java/grails/plugin/cache/web/GenericResponseWrapper.java:154: method does not override or implement a method from a supertype
@OverRide
^
/Users/<>/projects/remember/target/work/plugins/cache-1.1.1/src/java/grails/plugin/cache/web/filter/PageFragmentCachingFilter.java:398: cannot find symbol
symbol : method getContentType()
location: interface javax.servlet.http.HttpServletResponse
contentType = response.getContentType();
^
I don't have a good isolated test case (tried to make one but a seemingly clean grails app with nimble added and cache disabled fails with ClassNotFoundException: grails.plugin.webxml.FilterManager for some reason) nor am I fully certain it is a Nimble problem, but when running my application with "grails run-war" it fails with:
http://localhost:8080/
redirecting to
http://localhost:8080//login?targetUri=home%2Findex
and getting a 404.
When run as "grails run-app" and when the .war is deployed under Tomcat7 it works fine (redirects to "http://localhost:8080/login?targetUri=%2Fhome%2Findex" as expected).
I have
grails.app.context="/"
in Config.groovy which could be at fault because if I set it to "/test" then
http://localhost:8080/test/
redirects to
http://localhost:8080/test/login?targetUri=%2Fhome%2Findex
as expected.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.