Skip to content

[BUG] AadClientRegistrationRepository#toClientRegistration did not set userInfoUri #31546

Closed
@chenrujun

Description

@chenrujun

Context

In current AadClientRegistrationRepository#toClientRegistration , userInfoUri is not set, which caused OidcUserService#shouldRetrieveUserInfo always returns false.

Problem

OidcUserService#shouldRetrieveUserInfo always returns false, it is unexpected behavior.

Goal

  1. Make userInfoUri configured and use it to get user information.
  2. Confirm proxy setting will work when send http request to userInfoUri. DefaultOAuth2UserService's RestTemplate. Refs: [BUG] Make sure all RestTemplate are managed by AadRestTemplateCreator #31347 (comment)

Useful links

https://learn.microsoft.com/en-us/azure/active-directory/develop/userinfo

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.azure-springAll azure-spring related issuesbugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions