Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 14 10:15

    alvarosanchez on gh-pages

    Updating docs for Travis build:… (compare)

  • Feb 14 10:08

    alvarosanchez on gradle

    (compare)

  • Feb 14 10:08

    alvarosanchez on develop

    Bump spock-reports from 1.2.13 … Merge pull request #420 from al… (compare)

  • Feb 14 10:08
    alvarosanchez closed #420
  • Feb 14 10:08

    alvarosanchez on gradle

    (compare)

  • Feb 14 10:08

    alvarosanchez on develop

    Bump byte-buddy from 1.7.11 to … Merge pull request #421 from al… (compare)

  • Feb 14 10:08
    alvarosanchez closed #421
  • Feb 14 05:07
    dependabot-preview[bot] labeled #421
  • Feb 14 05:07
    dependabot-preview[bot] opened #421
  • Feb 14 05:07

    dependabot-preview[bot] on gradle

    Bump byte-buddy from 1.7.11 to … (compare)

  • Feb 14 05:06
    dependabot-preview[bot] labeled #420
  • Feb 14 05:06
    dependabot-preview[bot] opened #420
  • Feb 14 05:06

    dependabot-preview[bot] on gradle

    Bump spock-reports from 1.2.13 … (compare)

  • Feb 13 12:31

    alvarosanchez on gh-pages

    Updating docs for Travis build:… (compare)

  • Feb 13 12:30

    alvarosanchez on gh-pages

    Updating docs for Travis build:… (compare)

  • Feb 13 12:27

    alvarosanchez on gh-pages

    Updating docs for Travis build:… (compare)

  • Feb 13 12:24

    alvarosanchez on 3.0.0

    (compare)

  • Feb 13 12:24

    alvarosanchez on develop

    Back to snapshot (compare)

  • Feb 13 12:21

    alvarosanchez on master

    Fixing configuration setting na… made a mistake and deleted "gra… made a mistake and deleted "gra… and 35 more (compare)

  • Feb 13 12:05

    alvarosanchez on gh-pages

    Updating docs for Travis build:… (compare)

ramyakrish85
@ramyakrish85
Hello
Can we use both backend database and rest service together
in case I am not able to authenticate using database
I will connect to REST
Álvaro Sánchez-Mariscal
@alvarosanchez
I don't fully understand your question
Sufyan Shoaib
@sufyanshoaib
Hi.. is it possible to do a manually login? I am actually trying to register a user, and on success, i would like to login that user and return a valid token.
Álvaro Sánchez-Mariscal
@alvarosanchez
manually from where?
from the command line?
Sufyan Shoaib
@sufyanshoaib
from controller, a request for registration is made, and on success i need to login that user... so this will be performed in controller's action.
Sufyan Shoaib
@sufyanshoaib
Also, Is there any method or class that i can use to get the current logged user token?
Álvaro Sánchez-Mariscal
@alvarosanchez
you can use springSecurityService.reauthenticate(username)
Álvaro Sánchez-Mariscal
@alvarosanchez
as for the current token, you can take a look at springSecurityService.principal
Sufyan Shoaib
@sufyanshoaib
ok great.. i will check this and will get back .. thanks.
rod3go
@rod3go

Hi. I am trying to use the plugin. I've configured it to use Grails cache and I've provided the proper configuration. Also I pasted the filterChain code from the documentation. However, whenever I try to access a restricted controller, it redirects me to login page (html), also whenever I try to login to the authentication endpoint I get a 401 status code.

Is there any configuration I am missing?

Sufyan Shoaib
@sufyanshoaib
@alvarosanchez reauthenticate() method login the user ... but it doesnt create access token in authentication_token table... So i am not able to get the token :( ... If i see some code, RestAuthenticationFilter is doing that.. but in my case, i need to authenticate and get the access token from within my action method ..
rod3go
@rod3go
Please disregard my last message. I am not sure what I did wrong. But I started over and everything worked just fine. :)
Le Pogam Brivael
@briva
Hello.
I'm currently trying to setup memcache with sprint security rest and grails.
gabrielmds
@gabrielmds
Hello Alvaro, I am using spring-security-rest to authenticate users in a REST API and I had to let the client know if the account was locked ou expired. I added some code to BearerTokenAuthenticationFailureHandler to add de proper header messages.Is that recommended? Thank you
MadhuAithal
@MadhuAithal
Hello Alvaro, I wanted to know if I can use spring-security-rest 1.4 with grails 2.1.1 and spring-security-core 1.2.7. If that is not possible what version of spring-security-rest would you recommend and what functionality would I miss?
Álvaro Sánchez-Mariscal
@alvarosanchez
sorry guys, I was on vacation :)
I replied to the stackoverflow question I've seen so far
@gabrielmds yes, that is fine
@MadhuAithal it's not possible. SS core 1.x and 2.x have API changes that will make the REST plugin to not compile at all. I'm afraid you'll have to upgrade to spring-security-core 2.x
Minhaj
@minhajkk
Hi @alvarosanchez My Validation Endpoint is not working? I dont find any example using Validation Endpoint just to validate the token.
Álvaro Sánchez-Mariscal
@alvarosanchez
@minhajkk what is not working? What is your application base URL? How are you making the request?
sbrady
@sbrady
I am getting "Caused by InvalidMimeTypeException: Invalid mime type "null": 'mimeType' must not be empty" I am using ,spring-security-core:2.0-RC4,spring-security-rest:1.4.0. I can see there were some pull requests around this. has it been solved yet?
Álvaro Sánchez-Mariscal
@alvarosanchez
@sbrady see #116
sbrady
@sbrady
great thanks