Comments (8)
I was able to workaround this problem by downgrading to 0.1.0
. However, I did find that I'm unable to use @CrossOrigin
to enable cross-origin requests. Instead, I have to create a CorsFilter
.
@Bean
public FilterRegistrationBean simpleCorsFilter() {
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.setAllowedOrigins(Collections.singletonList("http://localhost:4200"));
config.setAllowedMethods(Collections.singletonList("*"));
config.setAllowedHeaders(Collections.singletonList("*"));
source.registerCorsConfiguration("/**", config);
FilterRegistrationBean bean = new FilterRegistrationBean(new CorsFilter(source));
bean.setOrder(Ordered.HIGHEST_PRECEDENCE);
return bean;
}
from okta-spring-boot.
0.1.0
isn't listed on Maven. How are we getting past this? I need to secure routes and API endpoints.
from okta-spring-boot.
from okta-spring-boot.
from okta-spring-boot.
Yeah that fixed not being able to start. Thanks.
from okta-spring-boot.
I tried to reproduce this again today with a new project from start.spring.io and everything seems to work fine. I even added devtools back in and it still works.
from okta-spring-boot.
what were your versions you used?
from okta-spring-boot.
@Prophet32j Spring Boot 1.5.8 and okta-spring-boot-starter 0.2.0. There does seem to be an issue when using Spring Boot 2.0. I found that reverting to okta-spring-security-starter 0.1.0 solved this problem.
from okta-spring-boot.
Related Issues (20)
- Application startup failure HOT 3
- Spring boot 3 HOT 3
- Custom JWT authentication converter is ignored HOT 5
- Public keys are not cached on the start up HOT 2
- How to disable Okta Login when running locally? HOT 2
- okta-spring-boot-starter 3.0.0 pulls in `javax` dependency; should pull in as `jakarta` HOT 8
- The redirect URI is invalid when using Spring WebFlux HOT 2
- Create authorities from Auth0 permissions claim HOT 2
- Bump okta.sdk.version from 8.2.3 to 10.x.x HOT 4
- Spring Boot 3.1 M2 not supported HOT 3
- No support for runtime-resolved OktaOAuth2Properties HOT 2
- Using this starter with Auth0 results in an opaque access token with `oauth2Login()` HOT 2
- How to resolve OKTA OIDC issue [access_denied] policy evaluation failed for this request please check the policy configurations HOT 2
- Default configuration causes pre-flight CORS request OPTIONS fail with HTTP 401 HOT 2
- Adding Spring HATEOAS to a project with Okta Boot Starter makes it fail to start
- From version 3.0.3, the application property resolution is broken when properties are loaded from Kubernetes ConfigMap HOT 2
- How to override the behavior of OktaOAuth2PropertiesMappingEnvironmentPostProcessor in a @SpringBootTest HOT 3
- Update start.spring.io to allow usage with Spring Boot 3.2.0 HOT 1
- When getting exception from OKTA is being redirected to /login?error HOT 2
- Documentation uses "marked for removal" examples
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okta-spring-boot.