实例介绍
【实例简介】
SimpleAuth是一个为.Net开发者提供的库,旨在简化身份认证和Rest API调用的流程。它通过将身份认证嵌入API调用中,使得开发者无需直接处理身份验证问题。SimpleAuth支持多种身份验证提供商,包括Azure Active Directory、Amazon、Dropbox、Facebook、Google、Instagram、LinkedIn、Microsoft Live Connect和Twitter等。
使用SimpleAuth进行API调用极其简单,只需几行代码即可完成。例如,要进行Restful API请求:
对于Android平台,SimpleAuth同样提供了原生Google登录支持,并且支持使用Custom Tabs进行授权。
除了移动平台,SimpleAuth还考虑到了.Net Core开发者的需求,提供了必要的认证存储和基本认证控制器实现示例。总的来说,SimpleAuth是一个功能强大而简单易用的库,适合任何需要在.Net环境下进行身份验证和API调用的开发项目。
【实例截图】
【核心代码】
文件清单
└── SimpleAuth-4317c3a53e6665014f896788fd8baee02a0bf54b
├── CODE_OF_CONDUCT.md
├── ext
│ └── portable-headers
│ └── System.Net.Http.dll
├── LICENSE
├── README.md
├── samples
│ ├── Sample.Droid
│ │ ├── Assets
│ │ │ └── AboutAssets.txt
│ │ ├── MainActivity.cs
│ │ ├── Properties
│ │ │ ├── AndroidManifest.xml
│ │ │ └── AssemblyInfo.cs
│ │ ├── Resources
│ │ │ ├── AboutResources.txt
│ │ │ ├── drawable
│ │ │ │ └── Icon.png
│ │ │ ├── layout
│ │ │ │ └── Main.axml
│ │ │ ├── Resource.Designer.cs
│ │ │ └── values
│ │ │ └── Strings.xml
│ │ └── Sample.Droid.csproj
│ ├── Sample.Forms
│ │ ├── Sample.Forms
│ │ │ ├── App.cs
│ │ │ ├── LoginPage.xaml
│ │ │ ├── LoginPage.xaml.cs
│ │ │ ├── Sample.Forms.projitems
│ │ │ └── Sample.Forms.shproj
│ │ ├── Sample.Forms.Droid
│ │ │ ├── Assets
│ │ │ │ └── AboutAssets.txt
│ │ │ ├── MainActivity.cs
│ │ │ ├── Properties
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── Resources
│ │ │ │ ├── AboutResources.txt
│ │ │ │ ├── drawable
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ └── icon.png
│ │ │ │ └── Resource.Designer.cs
│ │ │ ├── Sample.Forms.Droid.csproj
│ │ │ └── SimpleAuth.keystore
│ │ ├── Sample.Forms.iOS
│ │ │ ├── AppDelegate.cs
│ │ │ ├── Entitlements.plist
│ │ │ ├── Info.plist
│ │ │ ├── iTunesArtwork
│ │ │ ├── iTunesArtwork@2x
│ │ │ ├── Main.cs
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── Resources
│ │ │ │ ├── Default@2x.png
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Icon-60@2x.png
│ │ │ │ ├── Icon-60@3x.png
│ │ │ │ ├── Icon-76@2x.png
│ │ │ │ ├── Icon-76.png
│ │ │ │ ├── Icon-Small@2x.png
│ │ │ │ ├── Icon-Small@3x.png
│ │ │ │ ├── Icon-Small-40@2x.png
│ │ │ │ ├── Icon-Small-40@3x.png
│ │ │ │ ├── Icon-Small-40.png
│ │ │ │ ├── Icon-Small.png
│ │ │ │ └── LaunchScreen.storyboard
│ │ │ └── Sample.Forms.iOS.csproj
│ │ ├── Sample.Forms.UWP
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ ├── Assets
│ │ │ │ ├── LockScreenLogo.scale-200.png
│ │ │ │ ├── SplashScreen.scale-200.png
│ │ │ │ ├── Square150x150Logo.scale-200.png
│ │ │ │ ├── Square44x44Logo.scale-200.png
│ │ │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ │ │ ├── StoreLogo.png
│ │ │ │ └── Wide310x150Logo.scale-200.png
│ │ │ ├── MainPage.xaml
│ │ │ ├── MainPage.xaml.cs
│ │ │ ├── Package.appxmanifest
│ │ │ ├── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ └── Default.rd.xml
│ │ │ ├── Sample.Forms.UWP.csproj
│ │ │ ├── Sample.Forms.UWP.nuget.props
│ │ │ └── Sample.Forms.UWP.nuget.targets
│ │ ├── Sample.Forms.Windows
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ ├── Assets
│ │ │ │ ├── Logo.scale-100.png
│ │ │ │ ├── SmallLogo.scale-100.png
│ │ │ │ ├── SplashScreen.scale-100.png
│ │ │ │ └── StoreLogo.scale-100.png
│ │ │ ├── MainPage.xaml
│ │ │ ├── MainPage.xaml.cs
│ │ │ ├── Package.appxmanifest
│ │ │ ├── packages.config
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ └── Sample.Forms.Windows.csproj
│ │ └── Sample.Forms.WinPhone
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── Assets
│ │ │ ├── Logo.scale-240.png
│ │ │ ├── SmallLogo.scale-240.png
│ │ │ ├── SplashScreen.scale-240.png
│ │ │ ├── Square71x71Logo.scale-240.png
│ │ │ ├── StoreLogo.scale-240.png
│ │ │ └── WideLogo.scale-240.png
│ │ ├── MainPage.xaml
│ │ ├── MainPage.xaml.cs
│ │ ├── Package.appxmanifest
│ │ ├── packages.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Sample.Forms.WinPhone.csproj
│ ├── Sample.iOS
│ │ ├── AppDelegate.cs
│ │ ├── Entitlements.plist
│ │ ├── Info.plist
│ │ ├── Main.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Resources
│ │ │ └── LaunchScreen.xib
│ │ ├── Sample.iOS.csproj
│ │ └── Spinner.cs
│ ├── Sample.Mac
│ │ ├── AppDelegate.cs
│ │ ├── AppDelegate.designer.cs
│ │ ├── Entitlements.plist
│ │ ├── Info.plist
│ │ ├── Main.cs
│ │ ├── MainMenu.xib
│ │ ├── MainWindowController.cs
│ │ ├── MainWindowController.designer.cs
│ │ ├── MainWindow.cs
│ │ ├── MainWindow.designer.cs
│ │ ├── MainWindow.xib
│ │ ├── Resources
│ │ │ └── Images.xcassets
│ │ │ └── AppIcons.appiconset
│ │ │ ├── AppIcon-128@2x.png
│ │ │ ├── AppIcon-128.png
│ │ │ ├── AppIcon-16@2x.png
│ │ │ ├── AppIcon-16.png
│ │ │ ├── AppIcon-256@2x.png
│ │ │ ├── AppIcon-256.png
│ │ │ ├── AppIcon-32@2x.png
│ │ │ ├── AppIcon-32.png
│ │ │ ├── AppIcon-512@2x.png
│ │ │ ├── AppIcon-512.png
│ │ │ └── Contents.json
│ │ └── Sample.Mac.csproj
│ ├── Sample.Maui
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── LoginPage.xaml
│ │ ├── LoginPage.xaml.cs
│ │ ├── MauiProgram.cs
│ │ ├── Platforms
│ │ │ ├── Android
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── MainActivity.cs
│ │ │ │ ├── MainApplication.cs
│ │ │ │ └── Resources
│ │ │ │ └── values
│ │ │ │ └── colors.xml
│ │ │ ├── iOS
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Info.plist
│ │ │ │ └── Program.cs
│ │ │ ├── MacCatalyst
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Info.plist
│ │ │ │ └── Program.cs
│ │ │ └── Windows
│ │ │ ├── app.manifest
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ └── Package.appxmanifest
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── Resources
│ │ │ ├── AppIcon
│ │ │ │ ├── appiconfg.svg
│ │ │ │ └── appicon.svg
│ │ │ ├── Fonts
│ │ │ │ ├── OpenSans-Regular.ttf
│ │ │ │ └── OpenSans-Semibold.ttf
│ │ │ ├── Images
│ │ │ │ └── dotnet_bot.svg
│ │ │ ├── Raw
│ │ │ │ └── AboutAssets.txt
│ │ │ ├── Splash
│ │ │ │ └── splash.svg
│ │ │ └── Styles
│ │ │ ├── Colors.xaml
│ │ │ └── Styles.xaml
│ │ └── Sample.Maui.csproj
│ ├── SimpleAuth.Samples.sln
│ └── SimpleAuth.Samples.Windows.sln
├── SimpleAuth.Droid.CustomTabs.nuspec
├── SimpleAuth.Facebook.Droid.nuspec
├── SimpleAuth.Facebook.iOS.nuspec
├── SimpleAuth.Google.Droid.nuspec
├── SimpleAuth.Google.iOS.nuspec
├── SimpleAuth.nuspec
└── src
├── SimpleAuth
│ ├── Api
│ │ ├── Account.cs
│ │ ├── Api.cs
│ │ ├── ApiResponse.cs
│ │ ├── Attributes.cs
│ │ ├── AuthenticatedApi.cs
│ │ ├── Authenticator.cs
│ │ ├── JSonExtensions.cs
│ │ └── WebAuthenticator.cs
│ ├── ApiKey
│ │ ├── ApiKeyApi.cs
│ │ └── AuthLocation.cs
│ ├── BasicAuth
│ │ ├── BasicAuthAccount.cs
│ │ ├── BasicAuthApi.cs
│ │ ├── BasicAuthAuthenticator.cs
│ │ └── IBasicAuthenicator.cs
│ ├── Converters
│ │ ├── Converter.cs
│ │ └── JsonConverter.cs
│ ├── Helpers
│ │ ├── CookieHolder.cs
│ │ ├── IAuthStorage.cs
│ │ ├── Resolver.cs
│ │ └── UrlUtility.cs
│ ├── OAuth
│ │ ├── OAuthAccount.cs
│ │ ├── OAuthApi.cs
│ │ ├── OauthApiKeyApi.cs
│ │ ├── OAuthAuthenticator.cs
│ │ ├── OAuthPasswordApi.cs
│ │ └── OauthResponse.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Providers
│ │ ├── ADFS.cs
│ │ ├── Amazon.cs
│ │ ├── AzureB2CApi.cs
│ │ ├── DropBox.cs
│ │ ├── Facebook.cs
│ │ ├── FitBitApi.cs
│ │ ├── Github.cs
│ │ ├── Google.cs
│ │ ├── Instagram.cs
│ │ ├── LinkedIn.cs
│ │ ├── MicrosoftLiveConnectApi.cs
│ │ └── Twitter.cs
│ ├── SimpleAuth.projitems
│ └── SimpleAuth.shproj
├── SimpleAuth.Droid
│ ├── ActivityStateRepository.cs
│ ├── App.config
│ ├── AuthStorage.cs
│ ├── LoginActvity.cs
│ ├── Native.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── layout
│ │ │ └── login.axml
│ │ ├── Resource.Designer.cs
│ │ └── Values
│ │ └── Strings.xml
│ ├── SimpleAuth.Droid.csproj
│ ├── TypeForwarded.cs
│ └── WebAuthenticatorActivity.cs
├── SimpleAuth.Droid.CustomTabs
│ ├── ActivityLifecycleCallbackManager.cs
│ ├── NativeCustomTabsAuthenticator.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ └── Resource.Designer.cs
│ ├── SimpleAuthCallbackActivity.cs
│ └── SimpleAuth.Droid.CustomTabs.csproj
├── SimpleAuth.Facebook.Droid
│ ├── ActivityLifecycleManager.cs
│ ├── Facebook.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ └── values
│ │ └── Strings.xml
│ └── SimpleAuth.Facebook.Droid.csproj
├── SimpleAuth.Facebook.iOS
│ ├── Facebook.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SimpleAuth.Facebook.iOS.csproj
├── SimpleAuth.Google.Droid
│ ├── ActivityLifecycleManager.cs
│ ├── Google.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ └── values
│ │ └── Strings.xml
│ └── SimpleAuth.Google.Droid.csproj
├── SimpleAuth.Google.iOS
│ ├── Google.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SimpleAuth.Google.iOS.csproj
├── SimpleAuth.iOS
│ ├── App.config
│ ├── AuthStorage.cs
│ ├── BasicAuthController.cs
│ ├── Entitlements.plist
│ ├── Native.cs
│ ├── NativeSafariAuthenticator.cs
│ ├── SimpleAuth.iOS.csproj
│ ├── Twitter.cs
│ ├── TypeForwarded.cs
│ ├── WebAuthenticatorViewController.cs
│ └── WebAuthenticatorWindow.cs
├── SimpleAuth.Mac
│ ├── AppleEventsHelper.cs
│ ├── AuthStorage.cs
│ ├── Entitlements.plist
│ ├── Native.cs
│ ├── NativeSafariAuthenticator.cs
│ ├── SimpleAuth.Mac.csproj
│ └── WebAuthenticator.cs
├── SimpleAuth.Mac.sln
├── SimpleAuth.Net
│ ├── AuthStorage.cs
│ └── SimpleAuth.Net.csproj
├── SimpleAuth.Net6
│ └── SimpleAuth-net6.csproj
├── SimpleAuth.sln
├── SimpleAuth.Tests
│ ├── Helpers
│ │ ├── FakeHttpHandler.cs
│ │ ├── InMemoryAuthStorage.cs
│ │ └── RequestMessage.cs
│ ├── OAuth
│ │ ├── OAuthApiTests.cs
│ │ ├── OAuthData.cs
│ │ └── OAuthTestApi.cs
│ └── SimpleAuth.Tests.csproj
└── SimpleAuth.UWP
├── AuthStorage.cs
├── CustomWebAuthenticationBroker.cs
├── CustomWebAuthenticationResult.cs
├── SimpleAuth.UWP.csproj
├── SimpleAuth.UWP.nuget.props
└── WebAuthenticatorWebView.cs
93 directories, 283 files
SimpleAuth是一个为.Net开发者提供的库,旨在简化身份认证和Rest API调用的流程。它通过将身份认证嵌入API调用中,使得开发者无需直接处理身份验证问题。SimpleAuth支持多种身份验证提供商,包括Azure Active Directory、Amazon、Dropbox、Facebook、Google、Instagram、LinkedIn、Microsoft Live Connect和Twitter等。
使用SimpleAuth进行API调用极其简单,只需几行代码即可完成。例如,要进行Restful API请求:
var song = await api.Get<Song>("http://myapi/Song/",songId);此外,SimpleAuth还提供了对iOS特有功能的支持,如OnePassword和原生Twitter、Facebook、Google登录支持。
对于Android平台,SimpleAuth同样提供了原生Google登录支持,并且支持使用Custom Tabs进行授权。
除了移动平台,SimpleAuth还考虑到了.Net Core开发者的需求,提供了必要的认证存储和基本认证控制器实现示例。总的来说,SimpleAuth是一个功能强大而简单易用的库,适合任何需要在.Net环境下进行身份验证和API调用的开发项目。
【实例截图】
【核心代码】
文件清单
└── SimpleAuth-4317c3a53e6665014f896788fd8baee02a0bf54b
├── CODE_OF_CONDUCT.md
├── ext
│ └── portable-headers
│ └── System.Net.Http.dll
├── LICENSE
├── README.md
├── samples
│ ├── Sample.Droid
│ │ ├── Assets
│ │ │ └── AboutAssets.txt
│ │ ├── MainActivity.cs
│ │ ├── Properties
│ │ │ ├── AndroidManifest.xml
│ │ │ └── AssemblyInfo.cs
│ │ ├── Resources
│ │ │ ├── AboutResources.txt
│ │ │ ├── drawable
│ │ │ │ └── Icon.png
│ │ │ ├── layout
│ │ │ │ └── Main.axml
│ │ │ ├── Resource.Designer.cs
│ │ │ └── values
│ │ │ └── Strings.xml
│ │ └── Sample.Droid.csproj
│ ├── Sample.Forms
│ │ ├── Sample.Forms
│ │ │ ├── App.cs
│ │ │ ├── LoginPage.xaml
│ │ │ ├── LoginPage.xaml.cs
│ │ │ ├── Sample.Forms.projitems
│ │ │ └── Sample.Forms.shproj
│ │ ├── Sample.Forms.Droid
│ │ │ ├── Assets
│ │ │ │ └── AboutAssets.txt
│ │ │ ├── MainActivity.cs
│ │ │ ├── Properties
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── Resources
│ │ │ │ ├── AboutResources.txt
│ │ │ │ ├── drawable
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-hdpi
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-xhdpi
│ │ │ │ │ └── icon.png
│ │ │ │ ├── drawable-xxhdpi
│ │ │ │ │ └── icon.png
│ │ │ │ └── Resource.Designer.cs
│ │ │ ├── Sample.Forms.Droid.csproj
│ │ │ └── SimpleAuth.keystore
│ │ ├── Sample.Forms.iOS
│ │ │ ├── AppDelegate.cs
│ │ │ ├── Entitlements.plist
│ │ │ ├── Info.plist
│ │ │ ├── iTunesArtwork
│ │ │ ├── iTunesArtwork@2x
│ │ │ ├── Main.cs
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ ├── Resources
│ │ │ │ ├── Default@2x.png
│ │ │ │ ├── Default-568h@2x.png
│ │ │ │ ├── Default.png
│ │ │ │ ├── Default-Portrait@2x.png
│ │ │ │ ├── Default-Portrait.png
│ │ │ │ ├── Icon-60@2x.png
│ │ │ │ ├── Icon-60@3x.png
│ │ │ │ ├── Icon-76@2x.png
│ │ │ │ ├── Icon-76.png
│ │ │ │ ├── Icon-Small@2x.png
│ │ │ │ ├── Icon-Small@3x.png
│ │ │ │ ├── Icon-Small-40@2x.png
│ │ │ │ ├── Icon-Small-40@3x.png
│ │ │ │ ├── Icon-Small-40.png
│ │ │ │ ├── Icon-Small.png
│ │ │ │ └── LaunchScreen.storyboard
│ │ │ └── Sample.Forms.iOS.csproj
│ │ ├── Sample.Forms.UWP
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ ├── Assets
│ │ │ │ ├── LockScreenLogo.scale-200.png
│ │ │ │ ├── SplashScreen.scale-200.png
│ │ │ │ ├── Square150x150Logo.scale-200.png
│ │ │ │ ├── Square44x44Logo.scale-200.png
│ │ │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png
│ │ │ │ ├── StoreLogo.png
│ │ │ │ └── Wide310x150Logo.scale-200.png
│ │ │ ├── MainPage.xaml
│ │ │ ├── MainPage.xaml.cs
│ │ │ ├── Package.appxmanifest
│ │ │ ├── Properties
│ │ │ │ ├── AssemblyInfo.cs
│ │ │ │ └── Default.rd.xml
│ │ │ ├── Sample.Forms.UWP.csproj
│ │ │ ├── Sample.Forms.UWP.nuget.props
│ │ │ └── Sample.Forms.UWP.nuget.targets
│ │ ├── Sample.Forms.Windows
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ ├── Assets
│ │ │ │ ├── Logo.scale-100.png
│ │ │ │ ├── SmallLogo.scale-100.png
│ │ │ │ ├── SplashScreen.scale-100.png
│ │ │ │ └── StoreLogo.scale-100.png
│ │ │ ├── MainPage.xaml
│ │ │ ├── MainPage.xaml.cs
│ │ │ ├── Package.appxmanifest
│ │ │ ├── packages.config
│ │ │ ├── Properties
│ │ │ │ └── AssemblyInfo.cs
│ │ │ └── Sample.Forms.Windows.csproj
│ │ └── Sample.Forms.WinPhone
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── Assets
│ │ │ ├── Logo.scale-240.png
│ │ │ ├── SmallLogo.scale-240.png
│ │ │ ├── SplashScreen.scale-240.png
│ │ │ ├── Square71x71Logo.scale-240.png
│ │ │ ├── StoreLogo.scale-240.png
│ │ │ └── WideLogo.scale-240.png
│ │ ├── MainPage.xaml
│ │ ├── MainPage.xaml.cs
│ │ ├── Package.appxmanifest
│ │ ├── packages.config
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ └── Sample.Forms.WinPhone.csproj
│ ├── Sample.iOS
│ │ ├── AppDelegate.cs
│ │ ├── Entitlements.plist
│ │ ├── Info.plist
│ │ ├── Main.cs
│ │ ├── Properties
│ │ │ └── AssemblyInfo.cs
│ │ ├── Resources
│ │ │ └── LaunchScreen.xib
│ │ ├── Sample.iOS.csproj
│ │ └── Spinner.cs
│ ├── Sample.Mac
│ │ ├── AppDelegate.cs
│ │ ├── AppDelegate.designer.cs
│ │ ├── Entitlements.plist
│ │ ├── Info.plist
│ │ ├── Main.cs
│ │ ├── MainMenu.xib
│ │ ├── MainWindowController.cs
│ │ ├── MainWindowController.designer.cs
│ │ ├── MainWindow.cs
│ │ ├── MainWindow.designer.cs
│ │ ├── MainWindow.xib
│ │ ├── Resources
│ │ │ └── Images.xcassets
│ │ │ └── AppIcons.appiconset
│ │ │ ├── AppIcon-128@2x.png
│ │ │ ├── AppIcon-128.png
│ │ │ ├── AppIcon-16@2x.png
│ │ │ ├── AppIcon-16.png
│ │ │ ├── AppIcon-256@2x.png
│ │ │ ├── AppIcon-256.png
│ │ │ ├── AppIcon-32@2x.png
│ │ │ ├── AppIcon-32.png
│ │ │ ├── AppIcon-512@2x.png
│ │ │ ├── AppIcon-512.png
│ │ │ └── Contents.json
│ │ └── Sample.Mac.csproj
│ ├── Sample.Maui
│ │ ├── App.xaml
│ │ ├── App.xaml.cs
│ │ ├── LoginPage.xaml
│ │ ├── LoginPage.xaml.cs
│ │ ├── MauiProgram.cs
│ │ ├── Platforms
│ │ │ ├── Android
│ │ │ │ ├── AndroidManifest.xml
│ │ │ │ ├── MainActivity.cs
│ │ │ │ ├── MainApplication.cs
│ │ │ │ └── Resources
│ │ │ │ └── values
│ │ │ │ └── colors.xml
│ │ │ ├── iOS
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Info.plist
│ │ │ │ └── Program.cs
│ │ │ ├── MacCatalyst
│ │ │ │ ├── AppDelegate.cs
│ │ │ │ ├── Info.plist
│ │ │ │ └── Program.cs
│ │ │ └── Windows
│ │ │ ├── app.manifest
│ │ │ ├── App.xaml
│ │ │ ├── App.xaml.cs
│ │ │ └── Package.appxmanifest
│ │ ├── Properties
│ │ │ └── launchSettings.json
│ │ ├── Resources
│ │ │ ├── AppIcon
│ │ │ │ ├── appiconfg.svg
│ │ │ │ └── appicon.svg
│ │ │ ├── Fonts
│ │ │ │ ├── OpenSans-Regular.ttf
│ │ │ │ └── OpenSans-Semibold.ttf
│ │ │ ├── Images
│ │ │ │ └── dotnet_bot.svg
│ │ │ ├── Raw
│ │ │ │ └── AboutAssets.txt
│ │ │ ├── Splash
│ │ │ │ └── splash.svg
│ │ │ └── Styles
│ │ │ ├── Colors.xaml
│ │ │ └── Styles.xaml
│ │ └── Sample.Maui.csproj
│ ├── SimpleAuth.Samples.sln
│ └── SimpleAuth.Samples.Windows.sln
├── SimpleAuth.Droid.CustomTabs.nuspec
├── SimpleAuth.Facebook.Droid.nuspec
├── SimpleAuth.Facebook.iOS.nuspec
├── SimpleAuth.Google.Droid.nuspec
├── SimpleAuth.Google.iOS.nuspec
├── SimpleAuth.nuspec
└── src
├── SimpleAuth
│ ├── Api
│ │ ├── Account.cs
│ │ ├── Api.cs
│ │ ├── ApiResponse.cs
│ │ ├── Attributes.cs
│ │ ├── AuthenticatedApi.cs
│ │ ├── Authenticator.cs
│ │ ├── JSonExtensions.cs
│ │ └── WebAuthenticator.cs
│ ├── ApiKey
│ │ ├── ApiKeyApi.cs
│ │ └── AuthLocation.cs
│ ├── BasicAuth
│ │ ├── BasicAuthAccount.cs
│ │ ├── BasicAuthApi.cs
│ │ ├── BasicAuthAuthenticator.cs
│ │ └── IBasicAuthenicator.cs
│ ├── Converters
│ │ ├── Converter.cs
│ │ └── JsonConverter.cs
│ ├── Helpers
│ │ ├── CookieHolder.cs
│ │ ├── IAuthStorage.cs
│ │ ├── Resolver.cs
│ │ └── UrlUtility.cs
│ ├── OAuth
│ │ ├── OAuthAccount.cs
│ │ ├── OAuthApi.cs
│ │ ├── OauthApiKeyApi.cs
│ │ ├── OAuthAuthenticator.cs
│ │ ├── OAuthPasswordApi.cs
│ │ └── OauthResponse.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Providers
│ │ ├── ADFS.cs
│ │ ├── Amazon.cs
│ │ ├── AzureB2CApi.cs
│ │ ├── DropBox.cs
│ │ ├── Facebook.cs
│ │ ├── FitBitApi.cs
│ │ ├── Github.cs
│ │ ├── Google.cs
│ │ ├── Instagram.cs
│ │ ├── LinkedIn.cs
│ │ ├── MicrosoftLiveConnectApi.cs
│ │ └── Twitter.cs
│ ├── SimpleAuth.projitems
│ └── SimpleAuth.shproj
├── SimpleAuth.Droid
│ ├── ActivityStateRepository.cs
│ ├── App.config
│ ├── AuthStorage.cs
│ ├── LoginActvity.cs
│ ├── Native.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── layout
│ │ │ └── login.axml
│ │ ├── Resource.Designer.cs
│ │ └── Values
│ │ └── Strings.xml
│ ├── SimpleAuth.Droid.csproj
│ ├── TypeForwarded.cs
│ └── WebAuthenticatorActivity.cs
├── SimpleAuth.Droid.CustomTabs
│ ├── ActivityLifecycleCallbackManager.cs
│ ├── NativeCustomTabsAuthenticator.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ └── Resource.Designer.cs
│ ├── SimpleAuthCallbackActivity.cs
│ └── SimpleAuth.Droid.CustomTabs.csproj
├── SimpleAuth.Facebook.Droid
│ ├── ActivityLifecycleManager.cs
│ ├── Facebook.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ └── values
│ │ └── Strings.xml
│ └── SimpleAuth.Facebook.Droid.csproj
├── SimpleAuth.Facebook.iOS
│ ├── Facebook.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SimpleAuth.Facebook.iOS.csproj
├── SimpleAuth.Google.Droid
│ ├── ActivityLifecycleManager.cs
│ ├── Google.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── Resources
│ │ ├── AboutResources.txt
│ │ ├── Resource.designer.cs
│ │ └── values
│ │ └── Strings.xml
│ └── SimpleAuth.Google.Droid.csproj
├── SimpleAuth.Google.iOS
│ ├── Google.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SimpleAuth.Google.iOS.csproj
├── SimpleAuth.iOS
│ ├── App.config
│ ├── AuthStorage.cs
│ ├── BasicAuthController.cs
│ ├── Entitlements.plist
│ ├── Native.cs
│ ├── NativeSafariAuthenticator.cs
│ ├── SimpleAuth.iOS.csproj
│ ├── Twitter.cs
│ ├── TypeForwarded.cs
│ ├── WebAuthenticatorViewController.cs
│ └── WebAuthenticatorWindow.cs
├── SimpleAuth.Mac
│ ├── AppleEventsHelper.cs
│ ├── AuthStorage.cs
│ ├── Entitlements.plist
│ ├── Native.cs
│ ├── NativeSafariAuthenticator.cs
│ ├── SimpleAuth.Mac.csproj
│ └── WebAuthenticator.cs
├── SimpleAuth.Mac.sln
├── SimpleAuth.Net
│ ├── AuthStorage.cs
│ └── SimpleAuth.Net.csproj
├── SimpleAuth.Net6
│ └── SimpleAuth-net6.csproj
├── SimpleAuth.sln
├── SimpleAuth.Tests
│ ├── Helpers
│ │ ├── FakeHttpHandler.cs
│ │ ├── InMemoryAuthStorage.cs
│ │ └── RequestMessage.cs
│ ├── OAuth
│ │ ├── OAuthApiTests.cs
│ │ ├── OAuthData.cs
│ │ └── OAuthTestApi.cs
│ └── SimpleAuth.Tests.csproj
└── SimpleAuth.UWP
├── AuthStorage.cs
├── CustomWebAuthenticationBroker.cs
├── CustomWebAuthenticationResult.cs
├── SimpleAuth.UWP.csproj
├── SimpleAuth.UWP.nuget.props
└── WebAuthenticatorWebView.cs
93 directories, 283 files
好例子网口号:伸出你的我的手 — 分享!
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论