specmatic / specmatic/specmatic-order-api-java-with-oauth
Unable to Generate OAuth Token in Postman
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 1
- Forks
- 1
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 6
Description
Steps to Reproduce
Start the environment
docker compose up
./mvnw clean spring-boot:run -Dspring-boot.run.profiles=prod
Generate OAuth Token using Postman
Open Postman.
Create a new request with:
Method: GET
URL: http://localhost:8080/products/10
- Under the Authorization tab:
Type: OAuth 2.0
- Click Get New Access Token
Enter the following details:
Auth URL: http://localhost:8083/realms/specmatic/protocol/openid-connect/auth
Access Token URL: http://localhost:8083/realms/specmatic/protocol/openid-connect/token
Client ID: order-api
Client Secret:
Scope: profile email
Select Authorize using browser and click Get New Access Token.
In the browser, enter credentials:
Username: user1
Password: password
Click Sign In.
Actual Result
An error message appears instead of generating an access token.
Expected Result
An access token should be generated successfully.
The Use Token button should appear at the top-right in Postman.
System Information
MacOS: 26.1
Docker: 29.0.1
Chrome: 143.0.7499.41
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running docker compose up and ./mvnw clean spring-boot:run -Dspring-boot.run.profiles=prod, then reproduce the flow in Postman using the auth and token URLs listed in the issue. Trace the OAuth configuration involved in those endpoints; done means Postman generates an access token and shows the Use Token button.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, postman, spring-boot
- Domain
- api, authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100