0

Comparing to working version of my Spring application I've only added Spring Security plugin to gradle.build
compile('org.springframework.boot:spring-boot-starter-security')
and used org.springframework.security.crypto.bcrypt.BCrypt within one of my classes. Now I'm getting "Full authentication is required to access this resource". How to fix this problem or how to exclude all Spring Security features except BCrypt (second is more preferable)?

asked Nov 12, 2017 at 18:22

1 Answer 1

1

In spring boot, adding this dependency normally enables the OAuth 2 security configuration and its common to get the Full authentication error. You can just add the Crypto dependency instead and try.
Maven:

 <dependency>
 <groupId>org.springframework.security</groupId>
 <artifactId>spring-security-crypto</artifactId>
 <version>4.0.1.RELEASE</version>
 </dependency>

Gradle:

compile('org.springframework.security:spring-security-crypto:4.0.1.RELEASE')
answered Nov 12, 2017 at 18:51
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.