Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with generating tokens to access organization services #34

Open
wangwei0537 opened this issue Nov 8, 2023 · 1 comment
Open

Comments

@wangwei0537
Copy link

Dear author:
I am a reader from China. Regarding the chapter 9 in the book, there are several questions that have always puzzled me, so I would like to ask you:
The first question: There is an organization-service.properties resource file in the configserver service. The configuration parameters inside are as follows:
security.oauth2.resource.userInfoUri= http://authenticationservice:8082/user
signing.key: "345345fsdfsf5345"
authenticationservice does not seem to have appeared before. Is signing.key also useful in Chapter 9?

Second question: According to the steps in the readme file you gave me, I cannot obtain the user token using the client key in the code. After regenerating the client key, the token can be produced normally, but when accessing http://localhost:8072/organization/v1/organization/e6a625cc-718b-48c2-ac76-1dfdff9a531e The interface address, user name and client secret key have been filled in. Others have been filled in according to the instructions in the book, and the results are returned Status code 401, so I need your help on how to run the code the correct way.
I very much hope you can reply to me, thank you!

@Alphabtw00
Copy link

i dont know much as i didnt use this book's version of security but as far as i know this property is used so that our resource server can go to this url and request more info about the client using the auth token presented via client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants