Questions tagged [spring-lemon]

Spring Lemon is a library containing the essential configurations and code needed for developing REST APIs using Spring Framework and Spring Boot.

Spring Lemon is a library containing the essential configurations and code needed for developing REST APIs using Spring Framework and Spring Boot. It also contains a production-grade, extensible user module having features like sign up, sign in, verify email, update profile, forgot password, change password, change email, captcha validation etc..

22 questions
2
votes
1 answer

Spring lemon BeanCurrentlyInCreationException: Error creating bean

I'm trying to follow this spring-lemon Getting started tutorial (https://naturalprogrammer.gitbooks.io/spring-lemon-getting-started/content/index.html), but I can't go further at a certain point. I created a new spring starter project (Spring…
Siriann
  • 405
  • 1
  • 6
  • 16
2
votes
0 answers

How to add OAuth2+JWT authentication to a Spring Lemon based application

I was pondering what would be the best way to incorporate OAuth2+JWT authentication to a Spring Lemon based application. Precisely, would it be possible by extending the LemonSecurityConfig class, or the source of Spring Lemon needs any change?
Sanjay
  • 8,755
  • 7
  • 46
  • 62
1
vote
3 answers

Angular login withCredentials:true doesnt work

Logging in using restAPIfails in browser , but works in postman. here is my angular code for login, which throws me 401 login(username: string, password: string) { const httpHeaders = new HttpHeaders() .set('Accept',…
1
vote
1 answer

spring lemon - getting AccessDeniedException on email verification

I am using spring lemon and a reactjs app on the client side. I successfully register a new user, and when the user clicks the email link he is redirected to a screen in the react app which sends a POST request to the /api/users/verify url. At this…
barisdad
  • 515
  • 7
  • 19
1
vote
2 answers

Special characters with JPA, JDBC, and mysql

I use JPA, JDBC and MySQL for my Spring Boot project. I have some trouble with special characters. If I write an SQL query via JdbcTemplate, it's just fine. I can get back "á" characters. But if it's via JPA, those characters are �-s. The schema's…
Siriann
  • 405
  • 1
  • 6
  • 16
0
votes
1 answer

Spring-Lemon auth token expiration

I use Spring-Lemon library for my spring boot project. I use a web front-end to my application. My question is, how to know if my auth token is about to expire? Documentation said a Get context operation should be used in this case to get a new…
Siriann
  • 405
  • 1
  • 6
  • 16
0
votes
1 answer

LemonWebSecurityConfig customization

I use SpringLemon for my project. I would like to customize authorizeRequests method so that any request that starts with "/xyz" is only accessible for authenticated users. ("/xyz/abc", /xyz/def", "xyz/ghi/jkl", etc.) In order to do this, I made my…
Siriann
  • 405
  • 1
  • 6
  • 16
0
votes
1 answer

Using Submodules Within SpringLemon

I want to make use to the exception handling features within SpringLemon. Do I need to include all of SpringLemon (i.e. the main library and other configuration elements) I've tried creating the example project and removed some of the dependent…
0
votes
1 answer

Spring Lemon: Response headers Set-Cookie and X-XSRF-TOKEN are missing

For my current project I use Spring Lemon library with 1.0.0.RC1 version. When I make an /api/core/context request I don't get Set-Cookie and X-XSRF-TOKEN headers. For my earlier projects I used Spring Lemon 0.9.0 and it worked perfectly, after a…
Siriann
  • 405
  • 1
  • 6
  • 16
0
votes
1 answer

Spring Boot OAuth2 when implicit JWT is created?

How can I get details from the OAuth2 SSO Principal into my JWT? (instance of OAuth2Authentication getDetails as OAuth2AuthenticationDetails getDecodedDetails returns null) I have... Angular 6 client w/ implicit login as acme client (using…
0
votes
0 answers

Spring Lemon dependency failing in POM

I follow the spring lemon tutorial for using the spring lemon I included the Spring Lemon dependency but the spring lemon dependency cannot be downloaded, It says "Missing artifact com.naturalprogrammer:spring" I have included the JitPack…
MuJava
  • 1
  • 1
0
votes
1 answer

Secured spring request handler with Apikey and user roles using spring lemon

Can I be enriched with some code snippets for securing certain request handlers with user roles and apikey using spring lemon please.
kiran
  • 71
  • 1
  • 6
0
votes
1 answer

JSON login with spring-lemon

I'm using spring-lemon for my web application project. Spring-lemon uses standard form login by default, which works fine. Now, however, I need to use authentication with json request, something like this: {"username":"spring.user",…
Siriann
  • 405
  • 1
  • 6
  • 16
0
votes
0 answers

spring lemon - "Request method 'GET' not supported" on email verification

I am trying to use spring lemon for user handling. I am sending a registration request which gets a 201 response and sends an email to the user, but when the user clicks the link he gets a "Request method 'GET' not supported" response. I looked at…
barisdad
  • 515
  • 7
  • 19
0
votes
0 answers

Getting 404 Not Found Trying to Login User

I am able to signup and verify a user using Google's Advanced Rest Client. However, when I try to login the user, I get this response: { "timestamp": 1471401958802 "status": 404 "error": "Not Found" "message": "No message…
Gilbert Lopez
  • 163
  • 1
  • 6
1
2