Posts

Showing posts with the label spring boot

Using OAuth2 in Spring Boot App with {okta}

Image
Add the following dependencies in POM file <dependency>     <groupId>com.okta.spring</groupId>     <artifactId>okta-spring-boot-starter</artifactId>     <version>0.2.0</version> </dependency>         <dependency>             <groupId>org.springframework.security.oauth</groupId>             <artifactId>spring-security-oauth2</artifactId>             <version>2.2.0.RELEASE</version>         </dependency> In spring boot main class add the following Bold and Underlined code            import org.springframework.boot.autoconfigure.SpringBootApplication;             import org.springframework.security.oauth2.config.annotation.web.con...

Maven Proxy setting issues for NTLM Proxy Users

Image
Follow the following steps and the problem would be resolved. 1. Download and install cNTLM for windows. 2. Configure cNTLM as shown below: Open cntlm.ini configuration file. Configure cntlm.ini file Set user name. Set domain name Set user's password. Set Proxy IP and Port. Note down Listen port to set in maven's settings.xml file. Now save and close cntlm.ini file. 3. Open maven settings.xml file and set proxy settings as follows:     <settings>        <proxies>              <proxy>                     <active>true</active>                     <protocol>http</protocol>                     <host> 127.0.0.1 </host>                 ...