1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-01 16:13:15 +00:00

Converted auth to identity server endpoints and utilize bearer2 access token

This commit is contained in:
Kyle Spearrin
2017-02-04 01:12:25 -05:00
parent 46bb8d2cb5
commit 4a4779fc63
17 changed files with 916 additions and 245 deletions

View File

@@ -10,11 +10,11 @@ namespace Bit.App
{
public TokenHttpRequestMessage()
{
var authService = Resolver.Resolve<IAuthService>();
var tokenService = Resolver.Resolve<ITokenService>();
var appIdService = Resolver.Resolve<IAppIdService>();
if(!string.IsNullOrWhiteSpace(authService.Token))
if(!string.IsNullOrWhiteSpace(tokenService.Token))
{
Headers.Add("Authorization", $"Bearer {authService.Token}");
Headers.Add("Authorization", $"Bearer2 {tokenService.Token}");
}
if(!string.IsNullOrWhiteSpace(appIdService.AppId))
{