https://github.com/thomaslevesque/oauthui
A portable class library that provides a UI for OAuth authentication on desktop and mobile platforms.
https://github.com/thomaslevesque/oauthui
Last synced: about 1 year ago
JSON representation
A portable class library that provides a UI for OAuth authentication on desktop and mobile platforms.
- Host: GitHub
- URL: https://github.com/thomaslevesque/oauthui
- Owner: thomaslevesque
- License: apache-2.0
- Created: 2014-08-04T14:48:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2018-01-15T16:31:00.000Z (over 8 years ago)
- Last Synced: 2025-01-30T07:43:20.655Z (over 1 year ago)
- Language: C#
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
OAuthUI
=======
A portable class library that provides a UI for OAuth authentication on desktop and mobile platforms.
Note that OAuthUI handles *only* the UI aspects of OAuth, i.e. it displays a page in an embedded web browser and waits for redirection to the specified URI. Constructing the start URI and parsing the result URI is application-specific and outside the scope of this library.
Usage
-----
```csharp
var handler = new OAuthUIHandler();
var result = await handler.AuthorizeAsync(startUri, redirectUri);
if (result.Status == OAuthStatus.Success)
{
// Parse the URI in result.Data to get the authorization code
}
```