ServiceStack/ServiceStack — Issue #111: Supporting Oauth in AssignRoles/UnAssignRoles
Author: xplicit
Created: 2012-03-06 13:23:15+00:00
State: open

It seems that ServiceStack with RedisAuthRepository does not support OAuth in AssignRoles/UnAssignRoles services. Current implementation tries to find user with given username in hash "hash:UserAuth:UserName>UserId", but Oauth provider stores information about user in "hash:ProviderUserId>OAuthProviderId:" + provider;

I think implementation of AssignRolesService.OnPost should be similar to RedisAuthRepository.GetUserAuth:
at first try to get UserAuth by UserName, if not found try to get UserAuth by provider and id.