Questions tagged [spring-oauth2]

Official tutorial: https://spring.io/guides/tutorials/spring-boot-oauth2/

708 questions
0
votes
0 answers

Angular2 Client and REST Spring Boot Server using OAuth2

Let's assume: Angular2 Web Application => WebClient Spring Boot REST server => WebServer WebClient and WebServer are separate with different addresses. What I would like to do is access data from WebServer rest endpoints. I need authentication to…
user5656370
0
votes
1 answer

When to use Spring OAuth2 vs Cloud Foundry UAA?

Both code bases can provided OAuth2 capabilities. Why should I use one vs the other?
Newbie
  • 7,031
  • 9
  • 60
  • 85
0
votes
0 answers

spring security to spring oauth2

I currently have spring security added to my web app and looks like below: public class SecurityConfig extends WebSecurityConfigurerAdapter { public void copnfigure(HttpSecurity httpSecurity) throws Exception{ …
user7477092
0
votes
1 answer

How to connect angular 2 application with spring-oauth2 server?

I have an oauth-server secured with 'spring-cloud-oauth2' and 'spring-cloud-security' and the application is a spring-boot application. I am trying to get access_token from an angular 2 app, i.e. I want to login from angular 2 app. In my…
0
votes
2 answers

Spring OAuth2 custom grant type autowiring a class returns null

I have a problem with Spring Security OAuth2. There is a kiosk system where all the kiosks need to authorize with a central OAuth2 provider during launch. There are two stores for credentials -- one for actual users (e.g technicians) and another one…
Gasim
  • 7,615
  • 14
  • 64
  • 131
0
votes
1 answer

OAuth2 Resource Server not authenticating requests

I am setting up a standalone OAuth2 Resource Server and it does not appear to be authenticating requests, using CURL calls without a bearer token seem to succeed anyway. Alternatively, I tried to set up Global Method Security and all requests get…
0
votes
1 answer

spring zuul gateway with oauth2 sso and angular 2 CORS issue

Hi I have CORS issue with my microservices sso setup but I'm failing to figure it out why. My setup: oauth microservice port 8899: @Configuration @Order(-20) public class EndpointSecurityConfig extends WebSecurityConfigurerAdapter { private…
0
votes
1 answer

OAuth: Re-issue same access token on refresh

I am implementing an oauth server using spring oauth. I notice that spring's implementation re issues the same access token if not expired from the token endpoint. However the behavior is different while refreshing access tokens. A new token is…
VDev
  • 2,287
  • 5
  • 25
  • 27
0
votes
1 answer

Spring Boot OAuth2 Authorization Server, Bad Credentials Response

I'm trying to setup an OAuth2 Authorization Server using Spring Boot and Spring Security's OAuth2 Integration. When I try to authenticate I get a HTTP status code 400response saying: "Bad Credentials". Here you can find my Authorization Server and…
0
votes
0 answers

Spring Oauth2 Auth Server + Spring JPA not work in Spring Boot 1.4.3.RELEASE and Spring Cloud Camden SR3

I am using Spring Boot 1.3.5.RELEASE & Spring Cloud Brixton BR7 to create an OAuth Server that has TokenStore using a database with JPA Repository. They work perfectly! Today I upgrade to Spring Boot 1.4.3.RELEASE & Spring Clound Camden SR3 and I…
0
votes
1 answer

spring custom mongo TokenStore not refresh new access_token automatically when old expired?

I use mongo custom tokenStore and codeService: this is my custom mongoTokenStore: public class MongoTokenStore implements TokenStore { private final MongoAccessTokenRepository mongoAccessTokenRepository; private final…
0
votes
2 answers

spring OAuth2 zuul--Access token expired,invalid_token

I have a spring zuul OAuth2 app. authServer-- OAuth2ServerConfiguration: @Configuration public class { @Bean public TokenStore tokenStore() { return new InMemoryTokenStore(); } @Configuration @EnableResourceServer …
0
votes
1 answer

Calling refresh_token doesn't refresh resource ids in token

Flow is something like this: We have an oauth app registered with specific resource ids listed, so this app has access to those After some time there is a need to add another resource id, as we are extending features of our client app From time to…
hi_my_name_is
  • 4,894
  • 3
  • 34
  • 50
0
votes
0 answers

Spring OAuth2 AcessDenied while sending request with acess token

I have receivied access token with below request. curl -X POST -H "Content-Type: application/json" -H "Authorization: Basic dHJ1c3RlZC1jbGllbnQ6c2VjcmV0" -H "Cache-Control: no-cache" -H "Postman-Token: 99a69c90-d7f0-64ae-bc8e-f682e84c58c3"…
0
votes
1 answer

Spring Oauth2 with WebSecurity

I'am trying to setup Spring OAuth2 and using a custom WebSecurityConfigurerAdapter (@EnableWebSecurity). As a base I copied the following two projects: vanilla-sample a client application with @EnableOAuth2Sso and the corresponding…