summaryrefslogtreecommitdiffstats
path: root/samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2013-03-04 22:03:42 -0800
committerAndrew Arnott <andrewarnott@gmail.com>2013-03-04 22:03:42 -0800
commitcb249022036daaebcccadf09d3c62410de3147b6 (patch)
tree3499d6dc917aa43e82a80020b227d32160ce2624 /samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs
parentc1e5503b73929913e2c4ae59e0abe08f3d63736b (diff)
downloadDotNetOpenAuth-cb249022036daaebcccadf09d3c62410de3147b6.zip
DotNetOpenAuth-cb249022036daaebcccadf09d3c62410de3147b6.tar.gz
DotNetOpenAuth-cb249022036daaebcccadf09d3c62410de3147b6.tar.bz2
Moved Offline OP to use controllers.
Diffstat (limited to 'samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs')
-rw-r--r--samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs b/samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs
index b56666a..9394bd9 100644
--- a/samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs
+++ b/samples/OpenIdOfflineProvider/CheckIdWindow.xaml.cs
@@ -31,9 +31,9 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
/// <summary>
/// Initializes a new instance of the <see cref="CheckIdWindow"/> class.
/// </summary>
- /// <param name="provider">The OpenID Provider host.</param>
+ /// <param name="userIdentityPageBase">The base URI upon which user identity pages are created.</param>
/// <param name="request">The incoming authentication request.</param>
- private CheckIdWindow(HostedProvider provider, IAuthenticationRequest request) {
+ private CheckIdWindow(Uri userIdentityPageBase, IAuthenticationRequest request) {
Requires.NotNull(request, "request");
this.InitializeComponent();
@@ -44,8 +44,8 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
this.setupModeLabel.Visibility = request.Immediate ? Visibility.Collapsed : Visibility.Visible;
if (request.IsDirectedIdentity) {
- this.claimedIdentifierBox.Text = provider.UserIdentityPageBase.AbsoluteUri;
- this.localIdentifierBox.Text = provider.UserIdentityPageBase.AbsoluteUri;
+ this.claimedIdentifierBox.Text = userIdentityPageBase.AbsoluteUri;
+ this.localIdentifierBox.Text = userIdentityPageBase.AbsoluteUri;
} else {
this.claimedIdentifierBox.Text = request.ClaimedIdentifier;
this.localIdentifierBox.Text = request.LocalIdentifier;
@@ -55,17 +55,17 @@ namespace DotNetOpenAuth.OpenIdOfflineProvider {
/// <summary>
/// Processes an authentication request by a popup window.
/// </summary>
- /// <param name="provider">The OpenID Provider host.</param>
+ /// <param name="userIdentityPageBase">The base URI upon which user identity pages are created.</param>
/// <param name="request">The incoming authentication request.</param>
/// <param name="cancellationToken">The cancellation token.</param>
/// <returns>
/// A task that completes with the asynchronous operation.
/// </returns>
- internal static async Task ProcessAuthenticationAsync(HostedProvider provider, IAuthenticationRequest request, CancellationToken cancellationToken) {
- Requires.NotNull(provider, "provider");
+ internal static async Task ProcessAuthenticationAsync(Uri userIdentityPageBase, IAuthenticationRequest request, CancellationToken cancellationToken) {
+ Requires.NotNull(userIdentityPageBase, "userIdentityPageBase");
Requires.NotNull(request, "request");
- var window = new CheckIdWindow(provider, request);
+ var window = new CheckIdWindow(userIdentityPageBase, request);
bool isRPDiscoverable = await request.IsReturnUrlDiscoverableAsync(cancellationToken: cancellationToken) == RelyingPartyDiscoveryResult.Success;
window.discoverableYesLabel.Visibility = isRPDiscoverable ? Visibility.Visible : Visibility.Collapsed;