When generating new project using vaadin starter (v23), what are example users passwords? - vaadin

When generating new project using vaadin starter (v23), what are example users passwords? There are only hashes in data.sql and nothing in generated readme...

Ok, apparently it's user/user and admin/admin...

Related

Grails Spring Security Core 3.2.0.M1 - secure annotations not working

I have upgraded Grails and Spring Security to latest (3.3.0.RC1 and 3.2.0.M1 respectively) by following all of the migration paths but now my annotations no longer work. Control follows through to my not authorised callback (grails.plugin.springsecurity.adh.errorPage).
I have my own list of enum backed Permissions that I use to populate my list of authorities which are being correctly loaded for my user object but they no longer work in my annotations using the hasRole expression as follows;
#Secured(["hasAnyRole('PERM_VIEW_REPORTS'"])
other expressions are working fine such as the following
#Secured("authentication.name == 'sys_admin'")
#Secured("hasRole('PERM_VIEW_REPORTS')")
I don't suppose anyone has had any similar experience with the latest Spring Security release for Grails. Remember the above has worked perfectly until I upgraded but I don't see anything in the migration path that suggests there might be a problem with this system.
Thanking for any suggestions in advance.
This came down to the "ROLE_" prefix being mandatory again in the new Spring Security 3.2.0.M1 release. As can be seen from above, I had being using a "PERM_" prefix up to now to indicate that I'm using a permission based instead of role based paradigm.
I'm hoping to add this to the migration guide for the plugin as it's a major omission AFAIC. I would hope this would become a configuration option for the plugin in a future release.
EDIT:
It turns out Spring Security have introduced new methods hasAuthority() and hasAnyAuthority() which do not use the default role prefix and so can be used in place of hasRole() and hasAnyRole().
I have forked and updated the Spring Security docs for 3.2 and sent a pull request.
Please try with
#Secured ('ROLE_USER')
If you're trying to secured with more than one Role
#Secured(['ROLE_USER','ROLE_ADMIN'])

How to create a Custom section in admin panel of umbraco 6?

I am looking to develop a custom user section in admin panel of umbraco 6.
This section can manage user details as well as admin approval. Any one know how to implement this?
Apparently it is similar to doing it in Umbraco 4
But in Umbraco 6, instead of making the change to the umbracoApp table, you do the change in Config/applications.config file
Update:
For the tree nodes, I am still doing it the old way. Apparently in Umbraco 6 you can use trees.config, but I haven't tried it yet, I don't know much about it.
I have written a blog post about this that should work in Umbraco 6.
The changes that have been made is that instead of changing in the tables you change in the config files. It is also possible to create the tables by code in C# combined with c# attributes.
http://marcus-abrahamsson.se/post/Custom-Section-in-Umbraco-Back-office

Authentication in zend framework 2

I am going to write an Authentication module using the Zend Framework 2. To help me with this process, I found this tutorial in the web. However, when I run this module, it shows this message:
Class Zend\Authentication\Adapter\AdapterChain does not exist
What is the meaning of this message?
Additionally, do you know of a Zend Framework 2 Authentication tutorial I could use for assisstance as I write my own?
Look at ZFC-Common's ZfcAcl.
you can create your own customized plugin in zf2 something like this
Acl implimentation in ZF2
The EdpUser as mentioned above has been consumed by ZfcUser. That works will with ZF2 as Evan Dot Pro is a core contributor to ZF2. In relation to managing Acl's, ZfcAcl is currently not working with ZF2 RC1. It's a little behind the time now.
They have a RFC open to make updates but that looks like it's a little way down the line. I'd possibly recommend using BjyAuthorize. Zf-Commons are considering taking this over as well.
Try Authentication + Acl using EventManager. It looks like easier than ZfcAcl.
I was also using this tutorial month ago is to old and not working with beta5
You can try to play with
https://github.com/EvanDotPro/EdpUser it nicely writen and have cool things as view helpers for login form and auth status
I have created my own authentication adapter for this in one of my projects. I've created a gist. You can use it like this:
$adapter = new AdapterChain([
new \Zend\Authentication\Adapter\Ldap(/* ... */),
new \Zend\Authentication\Adapter\DbTable(/* ... */)
// ...
]);
$authService = new AuthenticationService();
$authService->setAdapter($adapter);

How to create user account in grails using netbeans?

I have problem in creating user account in grails using netbeans. Show me the coding of how to create the new user account in grails using the netbeans IDE.
Don't expect this to be quick and easy. You have to create User class yourself before creating new Users, and set it up to work as a User.
Start with learning some security plugin - spring-security, I suggest.
If you need to manage users, start with creating required domain classes and spring-security-ui.
And this has nothing to do with Netbeans or whatever IDE, it's just the code you create with it.
Check out this screencast-series, which explains everything. It is done with SpringSource Toolsuite, but you can do it in whatever editor you use (e.g. Netbeans)
http://blog.springsource.com/2010/08/11/simplified-spring-security-with-grails/
Greetings,
Jan

Generating pdf file using symfony framework

I'm using Symfony 1.4 and I have to create pdf file from Word/HTML with some fields added by user using form.
I've met this problem in plain php few years ago, but I wonder if there is any ready solution in Symfony framework? Or someone wants to share his idea about this...
I've been using http://www.symfony-project.org/plugins/sfTCPDFPlugin with Symfony 1.4 and haven't run into any problems yet. The sfTCPDFPlugin provides abstraction for the TCPDF, an open source PHP class for generating PDF documents.

Resources