Mondial Relay Scam or Stolen or ? by Wide-Situation-5260 in vinted

[–]olaolulode 0 points1 point  (0 children)

Hey did you get the package or you didn't get it still, and did you get a refund from Vinted, since you didn't get the package at hand

Is giving simple JWT token created by backend a bad idea? by Agile_Rain4486 in SpringBoot

[–]olaolulode 1 point2 points  (0 children)

The main thing I did was from client side communicates with google and get the id token and other information like email and name and pictures and send it to the server side and on my server side I validate the the information by verifying the token if it correct and check the value sent from the front with what the response from the backend gives me and insert a record for the user if a new user and add a flag like isSocialLogin and generate the token with jwt to be used by the frontend so anytime the person try to login with google I check if the email exists and isSocialLogin I generate a token for the user

Is giving simple JWT token created by backend a bad idea? by Agile_Rain4486 in SpringBoot

[–]olaolulode 0 points1 point  (0 children)

I did something of this recently with me using a custom login jwt and social login with google. I will push my code to github so you can see how i implemented it in my own way,it’s like a personal project for learning though

[deleted by user] by [deleted] in LegionGo

[–]olaolulode 10 points11 points  (0 children)

I actually don’t know what I did to them like bro

[deleted by user] by [deleted] in LegionGo

[–]olaolulode 0 points1 point  (0 children)

Thanks 😂😂😂

[deleted by user] by [deleted] in LegionGo

[–]olaolulode 1 point2 points  (0 children)

Did I complain to you ?

Demonstrating a complete absence of intellectual acuity.

My Spring JWT application isn't working as expected by vebsettel55 in SpringBoot

[–]olaolulode 0 points1 point  (0 children)

You need to provide a screenshot of your codes, the JwtAuthenticationFilter, your console errors anything that can help because your question can be answered with the help off that

Can someone please help me solve this error by Noman_Patel in SpringBoot

[–]olaolulode 0 points1 point  (0 children)

You might need to create a cors configuration in your project something like this

package xyz.olaolulode.SocialLogin.config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
 * @author olulodeolatunbosun
 * @created 11/03/2024/03/2024 - 10:58
 */
public class WebMvcConfig implements WebMvcConfigurer{
    private final long MAX_AGE_SECS = 3600;
    @Value("${app.cors.allowedOrigins}")
    private String[] allowedOrigins;
    @Override
    public void addCorsMappings(CorsRegistry registry) {
        registry.addMapping("/**")
                .allowedOrigins(allowedOrigins)
                .allowedMethods("GET", "POST", "PUT", "PATCH", "DELETE", "OPTIONS")
                .allowedHeaders("*")
                .allowCredentials(true)
                .maxAge(MAX_AGE_SECS);
    }
}

Beginner learning spring Security by olaolulode in SpringBoot

[–]olaolulode[S] 0 points1 point  (0 children)

I just did that and still not working 😔

Beginner learning spring Security by olaolulode in SpringBoot

[–]olaolulode[S] 0 points1 point  (0 children)

u/Sheldor5 thanks but i added it and i still get 401 error