diff --git a/src/Xamarin.Auth.sln b/src/Xamarin.Auth.sln index f39529e7d..072eab94d 100644 --- a/src/Xamarin.Auth.sln +++ b/src/Xamarin.Auth.sln @@ -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}" @@ -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 @@ -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 @@ -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 diff --git a/src/Xamarin.Auth/OAuth2Authenticator.cs b/src/Xamarin.Auth/OAuth2Authenticator.cs index ecee60872..348a2cf40 100644 --- a/src/Xamarin.Auth/OAuth2Authenticator.cs +++ b/src/Xamarin.Auth/OAuth2Authenticator.cs @@ -221,7 +221,36 @@ public override Task GetInitialUrlAsync () var tcs = new TaskCompletionSource (); tcs.SetResult (url); return tcs.Task; - } + } + + /// + /// Method that requests a new access token based on an initial refresh token + /// + /// Refresh token, typically from the 's refresh_token property + /// Time in seconds the refresh token expires in + public virtual Task RequestRefreshTokenAsync(string refreshToken) + { + var queryValues = new Dictionary + { + {"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"]); + }); + } /// /// Raised when a new page has been loaded. diff --git a/tests/Xamarin.Auth.iOS.Test/Xamarin.Auth.iOS.Test-Classic.csproj b/tests/Xamarin.Auth.iOS.Test/Xamarin.Auth.iOS.Test-Classic.csproj index dfd0405dc..cd4f46f56 100644 --- a/tests/Xamarin.Auth.iOS.Test/Xamarin.Auth.iOS.Test-Classic.csproj +++ b/tests/Xamarin.Auth.iOS.Test/Xamarin.Auth.iOS.Test-Classic.csproj @@ -1,118 +1,119 @@ - - - - Debug - iPhoneSimulator - 8.0.30703 - 2.0 - {FB361F3C-66D3-4B16-9FBF-62C06F7815FD} - {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - Exe - Xamarin.Auth.Test - Resources - - - True - full - False - bin\classic\iPhoneSimulator\Debug - obj\classic\iPhoneSimulator\Debug - DEBUG; - prompt - 4 - False - None - True - XamarinAuthiOSTestClassic - - - none - True - bin\classic\iPhoneSimulator\Release - obj\classic\iPhoneSimulator\Release - prompt - 4 - False - None - XamarinAuthiOSTestClassic - - - True - full - False - bin\classic\iPhone\Debug - obj\classic\iPhone\Debug - DEBUG; - prompt - 4 - False - True - iPhone Developer - XamarinAuthiOSTest - - - none - True - bin\classic\iPhone\Release - obj\classic\iPhone\Release - prompt - 4 - False - iPhone Developer - XamarinAuthiOSTest - - - none - True - bin\classic\iPhone\Ad-Hoc - obj\classic\iPhone\Ad-Hoc - prompt - 4 - False - True - iPhone Distribution - XamarinAuthiOSTest - - - none - True - bin\classic\iPhone\AppStore - obj\classic\iPhone\AppStore - prompt - 4 - False - iPhone Distribution - XamarinAuthiOSTest - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {9309BCCC-AA7B-4195-A130-D4572FA9488D} - Xamarin.Auth.iOS-Classic - - + + + + Debug + iPhoneSimulator + 8.0.30703 + 2.0 + {FB361F3C-66D3-4B16-9FBF-62C06F7815FD} + {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + Xamarin.Auth.Test + Resources + XamarinAuthiOSTestClassic + + + True + full + False + bin\classic\iPhoneSimulator\Debug + obj\classic\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + False + None + True + XamarinAuthiOSTestClassic + + + none + True + bin\classic\iPhoneSimulator\Release + obj\classic\iPhoneSimulator\Release + prompt + 4 + False + None + XamarinAuthiOSTestClassic + + + True + full + False + bin\classic\iPhone\Debug + obj\classic\iPhone\Debug + DEBUG; + prompt + 4 + False + True + iPhone Developer + XamarinAuthiOSTest + + + none + True + bin\classic\iPhone\Release + obj\classic\iPhone\Release + prompt + 4 + False + iPhone Developer + XamarinAuthiOSTest + + + none + True + bin\classic\iPhone\Ad-Hoc + obj\classic\iPhone\Ad-Hoc + prompt + 4 + False + True + iPhone Distribution + XamarinAuthiOSTest + + + none + True + bin\classic\iPhone\AppStore + obj\classic\iPhone\AppStore + prompt + 4 + False + iPhone Distribution + XamarinAuthiOSTest + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {9309BCCC-AA7B-4195-A130-D4572FA9488D} + Xamarin.Auth.iOS-Classic + + \ No newline at end of file