diff --git a/pom.xml b/pom.xml
index 7fc7048..75e61a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
4.0.0
org.teapot
teapot-backend
- 1.0.2
+ 1.0.3
jar
diff --git a/src/main/java/org/teapot/backend/config/security/AuthorizationServerConfig.java b/src/main/java/org/teapot/backend/config/security/AuthorizationServerConfig.java
index a3ffb6b..dbed0a2 100644
--- a/src/main/java/org/teapot/backend/config/security/AuthorizationServerConfig.java
+++ b/src/main/java/org/teapot/backend/config/security/AuthorizationServerConfig.java
@@ -9,6 +9,7 @@
import org.springframework.security.oauth2.config.annotation.web.configuration.AuthorizationServerConfigurerAdapter;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableAuthorizationServer;
import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer;
+import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerSecurityConfigurer;
@Configuration
@@ -28,6 +29,11 @@ public void configure(AuthorizationServerEndpointsConfigurer configurer) throws
configurer.userDetailsService(userDetailsService);
}
+ @Override
+ public void configure(AuthorizationServerSecurityConfigurer security) throws Exception {
+ security.allowFormAuthenticationForClients();
+ }
+
@Override
public void configure(ClientDetailsServiceConfigurer clients) throws Exception {
clients.inMemory().withClient("client")