You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code and redirectUri strings were passed as separate arguments.
New behavior
Code and RedirectUri are now properties on OAuthCodeExchangeContext that can be set via the OAuthCodeExchangeContext constructor. This new OAuthCodeExchangeContext type is now the only argument passed to OAuthHandler.ExchangeCodeAsync.
Reason for change
To flow additional parameters in a way that allows for similar non-breaking changes to be made in the future without adding new ExchangeCodeAsync overloads.
Recommended action
Construct an OAuthCodeExchangeContext with the appropriate code and redirectUri values. An AuthenticationProperties will also need to be passed in. This single OAuthCodeExchangeContext can then be passed to OAuthHandler.ExchangeCodeAsync instead of multiple arguments.
OAuthHandler ExchangeCodeAsync signature change
The signature of OAuthHandler.ExchangeCodeAsync was changed from:
To:
Version introduced
3.0
Old behavior
The code and redirectUri strings were passed as separate arguments.
New behavior
Code and RedirectUri are now properties on OAuthCodeExchangeContext that can be set via the OAuthCodeExchangeContext constructor. This new OAuthCodeExchangeContext type is now the only argument passed to OAuthHandler.ExchangeCodeAsync.
Reason for change
To flow additional parameters in a way that allows for similar non-breaking changes to be made in the future without adding new ExchangeCodeAsync overloads.
Recommended action
Construct an OAuthCodeExchangeContext with the appropriate code and redirectUri values. An AuthenticationProperties will also need to be passed in. This single OAuthCodeExchangeContext can then be passed to OAuthHandler.ExchangeCodeAsync instead of multiple arguments.
Category
ASP.NET Core
Affected APIs
OAuthHandler<TOptions>.ExchangeCodeAsync(string code, string redirectUri)
Issue metadata
The text was updated successfully, but these errors were encountered: