Reproduction of 1.2.4 migration? what to do best

I want to add authorization and authentication to my application using play 1.2.4, is it better to transfer the entire application to 2.0 now or use some modules for 1.2.4 and later fight with migration and re-authentication?

+4
source share
3 answers

If you are just trying to implement authentication and authorization, the transition to Play 2.0, of course, is not required. In addition, the transition from 1.x to 2.0 is not so simple, depending on the complexity of your application. There are some fairly significant differences between the two main versions of the structure. Reauthentication later will not be the biggest of your worries if you embark on a migration mission.

To authorize Play 1.2.4, I can recommend the Deadbolt module , it is very flexible, but it can easily start working. For authentication, the core secure module can be expanded to meet most needs.

+2
source

I recently had to download auth for the Play 1.2.4 site, and it was pretty painless using Play-ScalaSecure . This may not help if you are not using Scala.,

The disadvantage is that the documents are quite sparse, but the setup was simple, and the implementation is simple. Just apply the Security feature to the controllers.

+1
source

I had a flexible migration of my 1.2.4 application, which is currently under development and will be released for the first time, to version 2.0 only yesterday, and it was not difficult to make a decision with version 1.2.4. Playframework 2.0 - VERY different framework than 1.2.4, at least from my point of view:

  • Controllers are different
  • Rack access level is different
  • Different patterns
  • Configuration is different
  • and etc.

No doubt my next application will work with Playframework 2.0, but my current goal is to release my current application as soon as possible. Migrating to 2.0 will significantly slow down this task. If you have the same goal, I recommend that you stay with 1.2.4 and use the Deadbolt Module , as mentioned here. What I would do is quickly learn how to do in Playframework 2.0 and develop new things in your current 1.2.4 application in such a way as to facilitate migration ...

+1
source

Source: https://habr.com/ru/post/1401697/


All Articles