Questions tagged [spring-oauth2]

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

708 questions
0
votes
1 answer

spring oauth2, unable to retrieve user info

couldn't find a doc which illustrates how to use access_token to get user info. How can I make a such endpoint? I see when I access the /user endpoint OAuth2AuthenticationProcessingFilter is not included. I think I messed up something…
eugene
  • 39,839
  • 68
  • 255
  • 489
0
votes
1 answer

Spring security login error page, access denied

When I login into my oauth2 protected form with invalid credentials, the redirect to the default login error page 'login?error' does not work. In my logs I can see: 2018-02-01 10:58:35.935 DEBUG 17600 --- [http-nio-8899-exec-8]…
triGun
  • 71
  • 2
  • 10
0
votes
1 answer

Spring boot 2 OAuth2 "The HTTP Content-Type header must be application/json"

I am creating a spring boot 2 OAuth2 client/server application. The authorization server successfully logins and redirects to the client, but when the client receives the redirect…
0
votes
0 answers

Spring OAuth 2 Unique User for a Client

I'm securing my REST API using Spring OAuth 2. In there, I have number of clients and under each client there's users. Eg; Client A has users A1 and A2 and client B has users B1 and B2. But I can't find a way to define the relation between clients…
Dilan Tharaka
  • 517
  • 5
  • 15
0
votes
1 answer

enable to access a resource behind 2 zuul proxy with spring cloud oauth2

I' working in an microservices architecture where my ui services are backed by zuul-gui and backend services are backed by a zuul-service proxy (both with Spring cloud oauth2 @EnableOAuth2Sso annotation). My problem is that i'm enable to access…
0
votes
1 answer

Multiple Authorization Server

I have a Zuul Proxy that host behind it all Micro services including UI and Authorization servers . All are part of spring cloud. I tried to start a second Authorization Servers but that lead to the below errors 2017-11-17 08:07:47.146 INFO 9652…
Shahbour
  • 1,323
  • 1
  • 16
  • 42
0
votes
1 answer

OAuth2ClientAuthenticationProcessingFilter is not called after first authentication

I'm facing an issue with spring security oauth 2, at first connexion I'm getting my token and refresh token, everything is ok. but it's seems the token is never checked, when it expire no refresh request is made, nothing happen and i'm still…
Seb
  • 3,602
  • 8
  • 36
  • 52
0
votes
1 answer

CORS semi working between Angular App and Spring backend

Following this Spring tutorial I've added the following bean to my configuration logic. Note that I am using Spring Boot. If you are using Spring Boot, it is recommended to just declare a WebMvcConfigurer bean as following: @Bean public…
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
0
votes
2 answers

Spring Boot Security OAuth - handle InternalAuthenticationServiceException

My Spring Boot OAuth REST application returns "401 Unauthorized" status when the database connection failure(Spring Security throws InternalAuthenticationServiceException ). It's strange, and I need to change status to "500 Internal server error"…
0
votes
1 answer

Spring Security oAuth 2.0 UAA get token value authomatically

I am working on a project in which I need, not only to authenticate but also to have the real value of the token. We have a Spring Boot application with oAuth2.0 Spring Security and the problem is that I am not able to find a method that gives me a…
BigEndian32
  • 31
  • 1
  • 5
0
votes
1 answer

Spring OAuth2 + JWT, how to map external access token to local user

I am currently developing a web service with Spring. I would like to provide users the possibility to login via external OAuth-Services, e.g. Google, Github,... as well as a traditional username/password-login. POJO-wise, I have the following…
Turing85
  • 18,217
  • 7
  • 33
  • 58
0
votes
0 answers

Spring OAuth with JWT - authorization to be performed only based on JWT in authorization server

In my system I use JWT tokens so that authorization of requests could be performed based on JWT only, with no need to call database to fetch roles etc. I use OAuth, and my services are Resource servers which works fine and I'm satisfied with that.…
pzeszko
  • 1,989
  • 18
  • 29
0
votes
1 answer

BadCredentialsException: Could not obtain access token with spring boot security Oauth2 on GAE

I am currently developping a small web application with spring boot. I would like to use google oauth2 to login my user. All worked like a charm in localhost on my computer but when I deploy my app in GAE I get an error. Here is the error stack I…
0
votes
1 answer

Spring oauth2 : Access any resource server endpoint without Authentication

I have a scenario where I want to allow user to access a particular endpoint at resource server(running at 8098) from client application (running at 8080) without authentication. When ever I am trying to access it without client authentication it…
Asif Iqbal
  • 502
  • 6
  • 24
0
votes
3 answers

Spring OAuth2RestTemplate can't obtain new accessToken

I am using spring-boot-oauth2 with authorization_code flow and @EnableZuulProxy .I followed the example from tut-spring-security-and-angular-js with oauth2. I set 60 seconds to access_token_validty for development purpose. Everythings work fine…
Cataclysm
  • 7,592
  • 21
  • 74
  • 123