Skip to content

Commit 13045ef

Browse files
Matt Raiblebdemers
authored andcommitted
Simplify for latest versions
1 parent e0da8a6 commit 13045ef

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -392,27 +392,17 @@ This module integrates with Spring Security's OAuth support, all you need is the
392392
393393
## Use with Spring Native
394394
395-
You can use this starter with [Spring Native](https://github.com/spring-projects-experimental/spring-native). However, you will need to add an annotation to your main Spring Boot application class.
395+
You can use this starter with [Spring Native](https://github.com/spring-projects-experimental/spring-native). However, you will need to enable HTTPS in your main Spring Boot application class. For example:
396396
397397
```java
398398
package com.example.demo;
399399
400400
import org.springframework.boot.SpringApplication;
401401
import org.springframework.boot.autoconfigure.SpringBootApplication;
402-
import org.springframework.nativex.hint.AccessBits;
403402
import org.springframework.nativex.hint.NativeHint;
404-
import org.springframework.nativex.hint.ResourceHint;
405-
import org.springframework.nativex.hint.TypeHint;
406403
404+
@NativeHint(options = "--enable-https")
407405
@SpringBootApplication
408-
@NativeHint(options = "--enable-url-protocols=https")
409-
@ResourceHint(patterns = "com/okta/commons/configcheck/configuration-validator", isBundle = true)
410-
@TypeHint(typeNames = {
411-
"com.okta.spring.boot.oauth.OktaOpaqueTokenIntrospectConditional",
412-
"com.okta.spring.boot.oauth.OktaOpaqueTokenIntrospectConditional$ClientIdCondition",
413-
"com.okta.spring.boot.oauth.OktaOpaqueTokenIntrospectConditional$ClientSecretCondition",
414-
"com.okta.spring.boot.oauth.OktaOpaqueTokenIntrospectConditional$IntrospectionUriCondition"
415-
}, access = AccessBits.ALL)
416406
public class DemoApplication {
417407
418408
public static void main(String[] args) {
@@ -421,7 +411,7 @@ public class DemoApplication {
421411
}
422412
```
423413
424-
We are working on providing a native hints dependency with this configuration. This will allow you to add a dependency to your build file without making code changes.
414+
You can also configure this setting in your `pom.xml` or `build.gradle`. See [Spring Native's documentation](https://docs.spring.io/spring-native/docs/current/reference/htmlsingle/#native-image-options) for more information.
425415
426416
## Proxy
427417

0 commit comments

Comments
 (0)