This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
828 changed files
with
93,658 additions
and
92,459 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,41 @@ | ||
# Xamarin.Auth Issue | ||
|
||
*IF BUG, INCLUDE THIS PART:* | ||
|
||
### Version | ||
|
||
- [ ] nuget version = | ||
- [ ] component version = | ||
- [ ] sample | ||
|
||
|
||
### Steps to reproduce | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
Platform: | ||
|
||
- [] .NET version = | ||
- [] mono version = | ||
|
||
|
||
### Expected behaviour | ||
|
||
Tell us what should happen | ||
|
||
### Actual behaviour | ||
|
||
Tell us what happens instead | ||
Can you also include a screen shot? | ||
|
||
|
||
|
||
*IF IT IS A NEW FEATURE REQUEST, INCLUDE THIS PART:* | ||
|
||
### Feature description | ||
|
||
Write a description of the feature. How should it work? How should it look? | ||
Include some graphics if this could help! | ||
|
||
# Xamarin.Auth Issue | ||
|
||
*IF BUG, INCLUDE THIS PART:* | ||
|
||
### Version | ||
|
||
- [ ] nuget version = | ||
- [ ] component version = | ||
- [ ] sample | ||
|
||
|
||
### Steps to reproduce | ||
|
||
1. | ||
2. | ||
3. | ||
|
||
Platform: | ||
|
||
- [] .NET version = | ||
- [] mono version = | ||
|
||
|
||
### Expected behaviour | ||
|
||
Tell us what should happen | ||
|
||
### Actual behaviour | ||
|
||
Tell us what happens instead | ||
Can you also include a screen shot? | ||
|
||
|
||
|
||
*IF IT IS A NEW FEATURE REQUEST, INCLUDE THIS PART:* | ||
|
||
### Feature description | ||
|
||
Write a description of the feature. How should it work? How should it look? | ||
Include some graphics if this could help! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
# Xamarin.Auth Pull Request | ||
|
||
Fixes # . | ||
|
||
### Checklist | ||
|
||
- [ ] I have included examples or tests | ||
- [ ] I have updated the change log | ||
- [ ] I am listed in the CONTRIBUTORS file | ||
- [ ] I have cleaned up the commit history (use rebase and squash) | ||
|
||
### Changes proposed in this pull request: | ||
|
||
- | ||
- | ||
- | ||
# Xamarin.Auth Pull Request | ||
|
||
Fixes # . | ||
|
||
### Checklist | ||
|
||
- [ ] I have included examples or tests | ||
- [ ] I have updated the change log | ||
- [ ] I am listed in the CONTRIBUTORS file | ||
- [ ] I have cleaned up the commit history (use rebase and squash) | ||
|
||
### Changes proposed in this pull request: | ||
|
||
- | ||
- | ||
- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,74 @@ | ||
# Xamarin.Auth | ||
|
||
Xamarin.Auth makes authenticating with OAuth easy! Xamarin.Auth helps developers authenticate | ||
users via standard authentication mechanisms (e.g. OAuth 1.0 and 2.0), and store user | ||
credentials. It's also straightforward to add support for non-standard authentication schemes. | ||
|
||
OAuth flow (process) is setup in 5 major steps: | ||
|
||
1. Server side setup for OAuth service provider (Google, Facebook) | ||
2. Client side initialization of Authenticator object | ||
3. Creating and optionally customizing UI | ||
4. Presenting/Lunching UI and authenticating user | ||
5. Using identity | ||
|
||
|
||
``` csharp | ||
var auth = new OAuth2Authenticator ( | ||
clientId: "App ID from https://developers.facebook.com/apps", | ||
scope: "", | ||
authorizeUrl: new Uri ("https://m.facebook.com/dialog/oauth/"), | ||
redirectUrl: new Uri ("http://www.facebook.com/connect/login_success.html"), | ||
isUsingNativeUI: false); | ||
|
||
auth.Completed += (sender, eventArgs) => { | ||
DismissViewController (true, null); | ||
if (eventArgs.IsAuthenticated) { | ||
// Use eventArgs.Account to do wonderful things | ||
} | ||
} | ||
|
||
PresentViewController (auth.GetUI (), true, null); | ||
``` | ||
|
||
|
||
Xamarin.Auth is cross-platform, so once user learns how to use it on one platform, | ||
it is fairly simple to use it on other platforms. Xamarin.Auth has grown into fully | ||
fledged cross platform library supporting: | ||
|
||
* Xamarin.Android | ||
* Xamarin.iOS | ||
* Windows Phone Silverlight 8 | ||
* Windows Store 8.1 WinRT | ||
* Windows Phone 8.1 WinRT | ||
* Universal Windows Platform (UWP) | ||
|
||
|
||
## Current version and status | ||
|
||
[![Xamarin.Auth][3]][4] | ||
[![Components-XamarinAuth][1]][2] | ||
|
||
|
||
**nuget version 1.5.0** | ||
|
||
* Native UI (CustomTabs on Android and SFSafariViewController on iOS) | ||
* Xamarin.Forms support | ||
* Xamarin.Android (tested) | ||
* Xamarin.iOS (tested) | ||
* Windows platforms (tests in progress) | ||
|
||
* Xamarin.iOS Embedded Browser WKWebView support as alternative | ||
WKWebView instead of UIWebView | ||
|
||
## Support | ||
|
||
Xamarin.Auth is open source and a part of the [.Net Foundation][5]. To open a pull | ||
request or file an issue please see visit the [Xamairn.Auth][6] GitHub repository. | ||
|
||
[1]: https://jenkins.mono-project.com/view/Components/job/Components-XamarinAuth/badge/icon | ||
[2]: https://jenkins.mono-project.com/view/Components/job/Components-XamarinAuth | ||
[3]: https://img.shields.io/nuget/vpre/Xamarin.Auth.svg?maxAge=2592000&label=Xamarin.Auth%20nuget | ||
[4]: https://www.nuget.org/packages/Xamarin.Auth | ||
[5]: https://dotnetfoundation.org/projects | ||
# Xamarin.Auth | ||
|
||
Xamarin.Auth makes authenticating with OAuth easy! Xamarin.Auth helps developers authenticate | ||
users via standard authentication mechanisms (e.g. OAuth 1.0 and 2.0), and store user | ||
credentials. It's also straightforward to add support for non-standard authentication schemes. | ||
|
||
OAuth flow (process) is setup in 5 major steps: | ||
|
||
1. Server side setup for OAuth service provider (Google, Facebook) | ||
2. Client side initialization of Authenticator object | ||
3. Creating and optionally customizing UI | ||
4. Presenting/Lunching UI and authenticating user | ||
5. Using identity | ||
|
||
|
||
``` csharp | ||
var auth = new OAuth2Authenticator ( | ||
clientId: "App ID from https://developers.facebook.com/apps", | ||
scope: "", | ||
authorizeUrl: new Uri ("https://m.facebook.com/dialog/oauth/"), | ||
redirectUrl: new Uri ("http://www.facebook.com/connect/login_success.html"), | ||
isUsingNativeUI: false); | ||
|
||
auth.Completed += (sender, eventArgs) => { | ||
DismissViewController (true, null); | ||
if (eventArgs.IsAuthenticated) { | ||
// Use eventArgs.Account to do wonderful things | ||
} | ||
} | ||
|
||
PresentViewController (auth.GetUI (), true, null); | ||
``` | ||
|
||
|
||
Xamarin.Auth is cross-platform, so once user learns how to use it on one platform, | ||
it is fairly simple to use it on other platforms. Xamarin.Auth has grown into fully | ||
fledged cross platform library supporting: | ||
|
||
* Xamarin.Android | ||
* Xamarin.iOS | ||
* Windows Phone Silverlight 8 | ||
* Windows Store 8.1 WinRT | ||
* Windows Phone 8.1 WinRT | ||
* Universal Windows Platform (UWP) | ||
|
||
|
||
## Current version and status | ||
|
||
[![Xamarin.Auth][3]][4] | ||
[![Components-XamarinAuth][1]][2] | ||
|
||
|
||
**nuget version 1.5.0** | ||
|
||
* Native UI (CustomTabs on Android and SFSafariViewController on iOS) | ||
* Xamarin.Forms support | ||
* Xamarin.Android (tested) | ||
* Xamarin.iOS (tested) | ||
* Windows platforms (tests in progress) | ||
|
||
* Xamarin.iOS Embedded Browser WKWebView support as alternative | ||
WKWebView instead of UIWebView | ||
|
||
## Support | ||
|
||
Xamarin.Auth is open source and a part of the [.Net Foundation][5]. To open a pull | ||
request or file an issue please see visit the [Xamairn.Auth][6] GitHub repository. | ||
|
||
[1]: https://jenkins.mono-project.com/view/Components/job/Components-XamarinAuth/badge/icon | ||
[2]: https://jenkins.mono-project.com/view/Components/job/Components-XamarinAuth | ||
[3]: https://img.shields.io/nuget/vpre/Xamarin.Auth.svg?maxAge=2592000&label=Xamarin.Auth%20nuget | ||
[4]: https://www.nuget.org/packages/Xamarin.Auth | ||
[5]: https://dotnetfoundation.org/projects | ||
[6]: https://github.com/xamarin/Xamarin.Auth |
Oops, something went wrong.