Sevenauth OpenID for WP7 Devs (source code)

Now this is a nice OpenID 2.0 authentication mini-project for developers to use in their Windows Phone 7 project. Arktronik, the developer, explains the project in the video below. You can get the source code from github.

@keyboardP

Share

Advertisements

5 Responses to Sevenauth OpenID for WP7 Devs (source code)

  1. Catto says:

    Wow Wow!

    That is super!

    Thx 4 the info,
    Catto

  2. Garry says:

    On this line

    browser.Navigate(new Uri(fullUrl));

    i’m getting exceptionr:

    System.UnauthorizedAccessException was unhandled
    Message=Invalid cross-thread access.
    StackTrace:
    at Microsoft.Phone.Controls.WebBrowserInterop.EnsureOnUiThread()
    at Microsoft.Phone.Controls.WebBrowserInterop.NavigateCustom(Uri uri, Byte[] postData, String pszHeaders)
    at Microsoft.Phone.Controls.WebBrowser.Navigate(Uri uri, Byte[] postData, String additionalHeaders)
    at Microsoft.Phone.Controls.WebBrowser.Navigate(Uri uri)
    at wp7openid.OpenIdLogin.GotProviderUrl(ProviderDiscoveryData data)
    at wp7openid.Utility.ProcessXrds(String xrds, Action`1 callback)
    at wp7openid.Utility.GotDiscoveryPage(IAsyncResult result)
    at System.Net.Browser.ClientHttpWebRequest.c__DisplayClassa.b__8(Object state2)
    at System.Threading.ThreadPool.WorkItem.doWork(Object o)
    at System.Threading.Timer.ring()

    • keyboardP says:

      Hi Garry,
      I’m not affiliated with this project at all, so I’m not sure where the problem lies. From the error it seems like you’re trying to update the UI from a background thread. Instead, you should use Dispatcher.BeginInvoke() to carry out UI work on a background thread. For an answer specific to this project, you’re probably best off contacting the author. You could message him via the YouTube link.

  3. Garry says:

    System.Windows.Deployment.Current.Dispatcher.BeginInvoke(() =>
    {
    browser.Navigate(new Uri(fullUrl));
    });

    seemed to solve issue…

    • keyboardP says:

      Nice one 🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: