Questions tagged [grails-spring-security]

35 questions
5
votes
0 answers

Grails 3 Spring Security No Hibernate Session

I am migrating a grails 2.4.5 application to grails 3.1.11. Application has a custom authprovider which allows users to authenticate from db or a ldap server. If a user is ldap user, login credentials are verified from ldap, if not from db. Roles…
3
votes
0 answers

Grails 3 and Spring Security Maximum Concurrent Session

by default there is not an option to set maximum concurrent session propery in grails spring security plugin. That is available with spring security (spring security session control). How can i implement such functionality with grails 3 using spring…
3
votes
1 answer

unable to execute s2ui-override layout

Using Grails 3.1.9, spring-security-core 3.1.1 and spring-security-ui3.0.M2 I get the following when executing grails s2ui-override layout Command [s2ui-override] error: class path resource [layouts/springSecurityUI.gsp] cannot be opened because it…
Jared
  • 39,513
  • 29
  • 110
  • 145
2
votes
0 answers

Grails spring security custom session authentication

I work on a legacy system and as a result can't follow the box standard documentation given with the Spring Security Core plugin (documentation), which means I don't have fancy to domain objects. What I am trying to develop is a REST-API in grails…
2
votes
1 answer

Error running grails 3.3 app with spring security ui

I am unable to run grails app after including spring security ui plugin (3.0.2) in grails 3.3.0 application. The spring security core plugin version is 3.2.0.M1. The application works fine if spring security ui plugin is removed from the…
Satish
  • 31
  • 1
  • 7
2
votes
1 answer

How do I handle a custom authentication exception in grails spring-security-rest plugin?

I am using Grails with the spring-security-rest plugin. How do I make sure all user authentication errors get logged? I am finding that security exceptions thrown within the plugin are not being logged using my current config. I want any user…
1
vote
1 answer

How to implement concurrent session filter in grails to handle multiple login session?

For example: Suppose user "testuser@xyz.com" is login from one browser and performing some works. at the same time someone else login with same user "testuser@xyz.com" from another browser/machine in that scenario, i want to implement following…
1
vote
1 answer

Grails 3.3.9 Spring Security UI 3.1.2 generate error for duplicate email

In my User.groovy domain class, I have added the field String email which I want to capture on registration. I have these constraints defined: email email:true, blank: false, maxsize: 255, unique: true When I register, if I try to reuse an…
MonetsChemist
  • 165
  • 10
1
vote
0 answers

Can you refresh an access_token once it has expired in spring security rest?

Looking at the documentation you need to POST to /oauth/access_token POST /myApp/oauth/access_token HTTP/1.1 Host: server.example.com Content-Type:…
burns
  • 1,091
  • 13
  • 15
1
vote
1 answer

How to logout from a controller with Spring Security

Is there a logout method for Spring Security that I can use in a controller? Or is there a way to logout by clearing the cache and refreshing?
ken
  • 29
  • 3
1
vote
2 answers

Grails MongoDB Dirty Checking Fails With Spring Security

I'm using Grails 3.3.2 with the mongoDB plugin (v6.1.4) and Spring Security Core plugin (v3.2.0). I have the following UserPasswordEncoderListenerwith the following persistenceEvent method: @Override protected void…
Emmanuel John
  • 2,296
  • 1
  • 23
  • 30
1
vote
0 answers

Integrate AMAZON CONGNITO with GRAILS 3 and spring-security-core

I am looking to start a new project on GRAILS 3 which will use Amazon CONGNITO and spring-security-core. The main objective is to use Amazon CONGNITO user pool as a centralized user auth for both GRAILS 3 application which will include…
Sanjay
  • 11
  • 2
1
vote
0 answers

Grails 3.3.2 / Hot Reloading / Unexpected Error While trying to call the static initializer

When I make changes to a controller, it appears hot reloading is breaking with the following errors: 2018-01-26 19:37:43.752 ERROR --- [Loader@14dad5dc] o.s.loaded.CurrentLiveVersion : Unexpected exception whilst trying to call the static…
Emmanuel John
  • 2,296
  • 1
  • 23
  • 30
1
vote
1 answer

gradle war vs gradle assemble (Grails 3.2.6 and Sec plugin 3.1.2)

I am having really hard time figuring this one out. I have an app which works fine in intellij and as a standalone war (created with gradlew assemble). But when I am trying to deploy this war (created with gradlew assemble but with tomcat starter…
Tyagi Akhilesh
  • 744
  • 6
  • 15
1
vote
1 answer

Grails 3.2.8 dependency injection in domain classes

Grails 3.2.8 doesn't seem to have dependency injection working for domain classes by default. When I create a new app and add Spring Security Core 3.1.1 with the following println: protected void encodePassword() { println "springSecurityService…
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
1
2 3