spring-projects / spring-projects/spring-security

Enhance the observability of the authorization code flow when communicating with a third-party OAuth server

Open
#13,658 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

in: oauth2 type: enhancement
Dominant language
Java
Stars
9.6k
Forks
6.3k
Avg merge
2d 11h
Merged PRs (30d)
52

Description

Expected Behavior

A switch to trun on logging to show the requests and responses in the Authorization Code Flow for the communication with the oauth server(for example, Apple, Facebook, Google, Microsoft) in the log.

Better to also decode the id token and the sensitive value like email, id and name should be masked.

Current Behavior

Not able to find how to show it. The actuator's httpexchange only shows the requests and response between UserAgent and application. I was putting several debug points in the code of the library and made screenshots and mask the sensitive values myself.

Context

This is required for legal purpose to make the data trasfer observable between the application and the 3rd party Auth server.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the Authorization Code Flow communication with the third-party OAuth server and compare it with the actuator's httpexchange coverage. Define the scope of the logging switch, ID-token decoding, and masking for sensitive values such as email, ID, and name. Done means the relevant requests and responses are observable without exposing those sensitive values, with coverage for the stated flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
authentication, backend, security
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.