Questions tagged [spring-oauth2]

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

708 questions
0
votes
1 answer

Spring boot, Spring OAuth2, REST

I connect only to Auth server and i need the JWT, by console is all ok, but not RestTemplate, i haven't idea how to do. What would be the equivalent of the following: curl -u secretId:secret http://localhost:9999/uaa/oauth/token -d username=user-d…
Green - 4
  • 21
  • 11
0
votes
1 answer

Spring OAuth2 security and ResourceServer configuration

In my Spring Boot application I have configured following ResourceServer: @Configuration @EnableResourceServer protected static class ResourceServerConfiguration extends ResourceServerConfigurerAdapter { @Autowired private…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
2 answers

JWT access token public information and size

Right now my Spring OAuth2 JWT access token contains following information: Is it safe to have authorities in public access in this JWT token ? Also, the size of this token is 1500 bytes. Is it normal for JWT ? What is the size limitation for JWT…
alexanoid
  • 24,051
  • 54
  • 210
  • 410
0
votes
1 answer

Upgrading to spring-boot 1.4.1 - OAuth2 Security integration tests pass but client apps cannot log in

I have just upgraded an app from spring-boot 1.3.5 to spring-boot 1.4.1 For some reason, all my integration tests pass using oauth2. The test client can register users and perform operations with them during the maven integration test phase.…
John Deverall
  • 5,954
  • 3
  • 27
  • 37
0
votes
1 answer

Can not get Spring OAuth SSO filter to trigger

I have a spring boot + angular web app that closely follow the setup of this tutorial: I'm running Authorization Server, Resource Server, UI web app all in the same Spring Boot application. Then I have the need to allow user to login with third…
Quan Ding
  • 727
  • 1
  • 10
  • 21
0
votes
1 answer

Spring Boot OAuth 2 configuration with DB instead of inmemory

Below code uses inmemory to save the tokens in session, is it possible to store the tokens in DB and retrieve it from the same ? whether the below code will give performance issue? @Override public void…
Prithivi Raj
  • 2,658
  • 1
  • 19
  • 34
0
votes
1 answer

Getting refresh token in Android application from Spring OAuth2 based authentication server

I would like to authenticate android application using OAuth2 in my web service. After some research I know that I should use /oauth/authorize endpoint which gives me implicit authentication. However, in the end after redirection to login page and…
Cob
  • 171
  • 10
0
votes
1 answer

exclude spring oauth2 configuration

Is there any way exclude AuthorizationServerSecurityConfiguration from spring boot ? I try different configuration but its not working
Łukasz Woźniczka
  • 1,625
  • 3
  • 28
  • 51
0
votes
2 answers

Spring boot, oAuth2 sign up with facebook

I have been following @Dave Syers' excellent tutorial on Spring boot and oAuth2 I have been able to create a log in function, so that protected resources need a login to facebook before they can be accessed. But now I am trying to create a "sign…
Somaiah Kumbera
  • 7,063
  • 4
  • 43
  • 44
0
votes
0 answers

How to create user in UAA using rest api?

Could anyone please help me the way to create user in UAA by consuming rest api? I have refered below url, but I am bit confused about the token to pass. I don't have token to pass for create user request.…
PKumar
  • 516
  • 9
  • 20
0
votes
2 answers

How to create webapp, REST API and OAuth2 at the same server?

I'm still learning spring and currently I'm trying to create webapplication and RESTful API at the same server. It was easy until I tried to add OAuth2 authorizaton to be able to consume that API in Android application. I have a problem because I…
straw
  • 33
  • 6
0
votes
0 answers

Changing the View Technology in this Spring Boot Sample App

The Spring Boot OAuth2 authserver sample app at this link uses FreeMarker templates for its views, which include login, and authorize. The main application class for the app is at this link. What specific changes need to be made to the code in…
FirstOfMany
  • 185
  • 2
  • 7
0
votes
1 answer

How to listen login fail / success with oauth2 grant_type=password

My app uses spring cloud oauth2 rest and angular . My goal is to use the spring server to limit the maximum number of login failures angular2 login code: const body = "username=" + encodeURI(username) + "&password=" + encodeURI(password) + …
Kery Hu
  • 5,626
  • 11
  • 34
  • 51
0
votes
1 answer

Customizing TokenEndpoint in Spring OAuth2

First of all, I have already went through the previous questions on this subject. I am trying to customize implementations of org.springframework.security.oauth2.provider.endpoint.TokenEndpoint and CheckTokenEndpoint. I can easily do that but I…
bostonjava
  • 624
  • 1
  • 9
  • 20
0
votes
0 answers

RestTemplate - POST request for resulted in 401 (Unauthorized)

I try to implement custom Auth Server and Client. I use as example this code. I modified Tonr2 application to not to use any users. I want to convert this 2 application. Tonr2 should create session of user based on session from Sparklr2. Now I…
Oleksandr H
  • 2,965
  • 10
  • 40
  • 58