Red Hot Chili Peppers – Californication (WAV_FLAC_MP3) (SOG) [CHiP]

Category: Music
Seeds: 0
Leechers: 0
Size: 1.1 GB

More info at TorrentFunk.com

Storing Sprint Boot users in a database with Grails 3.0

How do you store users in a database with a new plain vanilla Grails 3.0 application?

Background:

  1. The Shiro and Spring Security plugins are not yet available for Grails 3.0 (and it sounds like Spring Boot is the future for Grails security).
  2. There are various examples out there showing how to use inMemoryAuthentication(), but they seem completely pointless as passwords end up being stored in plain text (besides, it only takes about 30 seconds of effort to create a domain model in Grails).
  3. Pretty much all Grails applications need this functionality.
  4. I’m using MongoDB
  5. Related:

I currently have inMemoryAuthentication() working with the following:

build.gradle

compile "org.springframework.boot:spring-boot-starter-security"

grails-app/conf/spring/resources.groovy

import com.tincanworks.AppSecurityConfig
beans = {
   webSecurityConfiguration(AppSecurityConfig)
   }

AppSecurityConfig.groovy

import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter

class AppSecurityConfig extends WebSecurityConfigurerAdapter {

   @Override
   protected void configure(HttpSecurity http) throws Exception {
      http
         .authorizeRequests()
            .antMatchers("/").permitAll()
            .antMatchers("/assets/**").permitAll()
            .antMatchers("/admin/**").hasAnyRole("admin")
            .anyRequest().authenticated()
         .and()
            .formLogin().permitAll()
         .and()
            .logout().permitAll()
      }

   @Autowired
   public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception {
      auth
         .inMemoryAuthentication()
            .withUser("user").password("123456").roles("user")
            .and()
            .withUser("admin").password("1qaz2wsx").roles("user", "admin");
      }

}

It seems like the answer may be related to =”http://docs.spring.io/spring-security/site/docs/3.0.x/reference/core-services.html” rel=”nofollow”>JdbcDaoImpl, but I have no idea how to hook that up in Grails.

Cosmic Gal – Keep On Moving – 1979

Category: Music
Seeds: 0
Leechers: 0
Size: 119.7 MB

More info at TorrentFunk.com

The I Hate to Cook Book 50th Anniversary Edition by Johanna Bracken

Category: Ebooks
Seeds: 0
Leechers: 0
Size: 3.6 MB

More info at TorrentFunk.com

PowerPoint 2013 Bible, 4th edition



PowerPoint 2013 Bible, 4th edition by Faithe Wempen

English | ISBN: 1118488113 | 2013 | PDF | 840 pages | 82,8 MB

Master PowerPoint and improve your presentation skills with one book!
In today's business climate, you need to know PowerPoint inside and out, and that's not all. You also need to be able to make a presentation that makes an impact.