Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Adding method to request a refresh token #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 109 additions & 69 deletions src/Xamarin.Auth.sln
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Auth", "Xamarin.Auth\Xamarin.Auth.csproj", "{C9FF1919-78DD-4084-976D-BDABC0A7E80B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Auth.Android", "Xamarin.Auth.Android\Xamarin.Auth.Android.csproj", "{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}"
Expand All @@ -24,52 +26,70 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Xamarin.Auth.iOS.Test", "..
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Ad-Hoc|iPhone = Ad-Hoc|iPhone
Ad-Hoc|iPhoneSimulator = Ad-Hoc|iPhoneSimulator
AppStore|Any CPU = AppStore|Any CPU
AppStore|iPhone = AppStore|iPhone
AppStore|iPhoneSimulator = AppStore|iPhoneSimulator
Debug|Any CPU = Debug|Any CPU
Debug|iPhone = Debug|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|Any CPU = Release|Any CPU
Release|iPhone = Release|iPhone
Debug|iPhoneSimulator = Debug|iPhoneSimulator
Release|iPhoneSimulator = Release|iPhoneSimulator
Ad-Hoc|iPhone = Ad-Hoc|iPhone
AppStore|iPhone = AppStore|iPhone
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|Any CPU.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhone.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhone.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhone.Build.0 = AppStore|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhone.ActiveCfg = Debug|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhone.Build.0 = Debug|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhone.ActiveCfg = Release|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhone.Build.0 = Release|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|Any CPU.Build.0 = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|iPhone.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|Any CPU.Build.0 = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhone.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|Any CPU.Build.0 = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|iPhone.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|Any CPU.Build.0 = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhone.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.AppStore|Any CPU.Build.0 = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.AppStore|iPhone.Build.0 = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Debug|iPhone.ActiveCfg = Debug|Any CPU
Expand All @@ -82,24 +102,16 @@ Global
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Release|iPhone.Build.0 = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{9309BCCC-AA7B-4195-A130-D4572FA9488D}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.AppStore|iPhone.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|Any CPU.Build.0 = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhone.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{C9FF1919-78DD-4084-976D-BDABC0A7E80B}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.AppStore|Any CPU.ActiveCfg = AppStore|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.AppStore|iPhone.Build.0 = AppStore|iPhone
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Debug|iPhone.ActiveCfg = Debug|iPhone
Expand All @@ -112,27 +124,55 @@ Global
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Release|iPhone.Build.0 = Release|iPhone
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{FB361F3C-66D3-4B16-9FBF-62C06F7815FD}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.AppStore|iPhone.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|Any CPU.Build.0 = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhone.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{FCF02C8C-6DD3-4C59-A8A2-58BC01A4BB21}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|Any CPU.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|Any CPU.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|Any CPU.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|Any CPU.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.AppStore|iPhoneSimulator.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhone.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|Any CPU.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhone.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhone.Build.0 = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{19A091BD-B0E7-49FC-BF83-4118D91A7DC3}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|Any CPU.ActiveCfg = Ad-Hoc|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Ad-Hoc|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Ad-Hoc|iPhoneSimulator.Build.0 = Ad-Hoc|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|Any CPU.ActiveCfg = AppStore|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhone.Build.0 = AppStore|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhoneSimulator.ActiveCfg = AppStore|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.AppStore|iPhoneSimulator.Build.0 = AppStore|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|Any CPU.ActiveCfg = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|Any CPU.Build.0 = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhone.ActiveCfg = Debug|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhone.Build.0 = Debug|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|Any CPU.ActiveCfg = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|Any CPU.Build.0 = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhone.ActiveCfg = Release|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhone.Build.0 = Release|iPhone
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
{77F9A9C6-7659-4B9C-9C3A-BF71BF761253}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Xamarin.Auth\Xamarin.Auth.csproj
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
31 changes: 30 additions & 1 deletion src/Xamarin.Auth/OAuth2Authenticator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,36 @@ public override Task<Uri> GetInitialUrlAsync ()
var tcs = new TaskCompletionSource<Uri> ();
tcs.SetResult (url);
return tcs.Task;
}
}

/// <summary>
/// Method that requests a new access token based on an initial refresh token
/// </summary>
/// <param name="refreshToken">Refresh token, typically from the <see cref="AccountStore"/>'s refresh_token property</param>
/// <returns>Time in seconds the refresh token expires in</returns>
public virtual Task<int> RequestRefreshTokenAsync(string refreshToken)
{
var queryValues = new Dictionary<string, string>
{
{"refresh_token", refreshToken},
{"client_id", this.ClientId},
{"grant_type", "refresh_token"}
};

if (!string.IsNullOrEmpty(this.ClientSecret))
{
queryValues["client_secret"] = this.ClientSecret;
}

return this.RequestAccessTokenAsync(queryValues).ContinueWith(result =>
{
var accountProperties = result.Result;

this.OnRetrievedAccountProperties(accountProperties);

return int.Parse(accountProperties["expires_in"]);
});
}

/// <summary>
/// Raised when a new page has been loaded.
Expand Down
Loading