authgear / authgear/authgear-server
[App2App] Scopes should be validated according to client type
Open
bug/minor
cooldown/enhancement
- Dominant language
- Go
- Stars
- 2k
- Forks
- 125
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 32
Description
Assume AppA is authenticated, and AppB is not authenticated.
Currently, when appB tries to authenticated with app2app by AppA, the scopes of AppA's session will be inherited to appB's session. Therefore, say if AppA supports a scope that AppB doesn't support, that new AppB's session will get an incorrect scope.
Contributor guide
Research direction
The issue names no files or tests; start by tracing the App2App authentication flow and how session scopes are copied between client types. Done means AppB's session retains only scopes supported by AppB, rather than inheriting incompatible scopes from AppA.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- authentication, authorization
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100