awslabs / sbt-aws

SaaS Builder Toolkit for AWS is a developer toolkit to implement SaaS best practices and increase developer velocity.
Apache License 2.0
90 stars 16 forks source link

(IAuth): (use userId instead of username) #54

Closed suhussai closed 1 week ago

suhussai commented 3 weeks ago

Describe the feature

Currently, we use username to communicate to the API which user we want to interact with. It would be better to make this more generic by using something like userId in order to account for IdPs that may use something else to uniquely identify a user in their system.

Use Case

Some IdPs support users having the same username. In that case, the IAuth will not work for such as users as it currently relies on username being able to uniquely identify a user within the system.

Proposed Solution

No response

Other Information

No response

Acknowledgements

CDK version used

2.140.1

Environment details (OS name and version, etc.)

Mac OS - Sonoma