Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DSD-3921 #8

Merged
merged 1 commit into from
Jan 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions captcha-validation-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@
<artifactId>kernel-core</artifactId>
<version>${kernel.version}</version>
</dependency>
<dependency>
<groupId>io.mosip.kernel</groupId>
<artifactId>kernel-logger-logback</artifactId>
<version>1.2.0.1-B1</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package io.mosip.captcha.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;


@Configuration
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {

@Override
protected void configure(HttpSecurity http) throws Exception {
http.csrf().disable()
.authorizeRequests().antMatchers("/").permitAll();
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
mosip.captcha.verify.url=https://www.google.com/recaptcha/api/siteverify
mosip.captcha.secretkey=1abc-2def
mosip.captcha.verify-url=https://www.google.com/recaptcha/api/siteverify
mosip.captcha.secret-key={ 'preregistration' : 'eeyefgdfgdfg' }

mosip.captcha.api.id=mosip.captcha.id.validate
mosip.captcha.api.version=1.0
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ server.port=9089
server.servlet.context-path=/v1/captcha
health.config.enabled=false

mosip.captcha.verify.url=https://www.google.com/recaptcha/api/siteverify
mosip.captcha.secretkey=1abc-2def
mosip.captcha.verify-url=https://www.google.com/recaptcha/api/siteverify
mosip.captcha.secret-key={ 'preregistration' : 'eeyefgdfgdfg' }

mosip.captcha.api.id=mosip.captcha.id.validate
mosip.captcha.api.version=1.0
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ management.endpoints.web.exposure.include=info,health,refresh
springdoc.paths-to-exclude=/swagger-resources/**
security.basic.enabled=false


openapi.info.title=captcha
openapi.info.description=captcha Service
openapi.info.version=1.0
Expand Down