v9 fix misc issues external member login (#12093)

* Add missing override for SetTokenAsync

* Fix mismatch between expected scheme prefix and exception message

* Store tokens on member update
This commit is contained in:
Paul Johnson
2022-03-03 17:18:39 +00:00
committed by GitHub
parent 44e8808079
commit ca5c85e656
2 changed files with 43 additions and 1 deletions

View File

@@ -41,7 +41,7 @@ namespace Umbraco.Cms.Web.Website.Security
// Validate that the prefix is set
if (!authenticationScheme.StartsWith(Constants.Security.MemberExternalAuthenticationTypePrefix))
{
throw new InvalidOperationException($"The {nameof(authenticationScheme)} is not prefixed with {Constants.Security.BackOfficeExternalAuthenticationTypePrefix}. The scheme must be created with a call to the method {nameof(SchemeForMembers)}");
throw new InvalidOperationException($"The {nameof(authenticationScheme)} is not prefixed with {Constants.Security.MemberExternalAuthenticationTypePrefix}. The scheme must be created with a call to the method {nameof(SchemeForMembers)}");
}
// add our login provider to the container along with a custom options configuration