spring-guides / tut-spring-security-and-angular-js

Spring Security and Angular:: A tutorial on how to use Spring Security with a single page application with various backend architectures, ranging from a simple single server to an API gateway with OAuth2 authentication.

Home Page:https://spring.io/guides/tutorials/spring-security-and-angular-js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no authorization grant

mantuu opened this issue · comments

Hi, I am new to oauth and have an important question, which I couldn't figure out:

Following part 4 of the tutorial (ouath server) I get an error after setting up the oauth server and making a GET request to http://localhost:9999/uaa/oauth/authorize?response_type=code&client_id=acme&redirect_uri=http://example.com in order to get an authorization grant (code). Browser is saying: error="invalid_client", error_description="Bad client credentials"

Anyone any ideas?

The problem was "security.oauth2.client.id=acme" instead of "security.oauth2.client.client-id=acme". The former was available via auto completion.