Apple.Auth.Signin
1.0.1
dotnet add package Apple.Auth.Signin --version 1.0.1
NuGet\Install-Package Apple.Auth.Signin -Version 1.0.1
<PackageReference Include="Apple.Auth.Signin" Version="1.0.1" />
paket add Apple.Auth.Signin --version 1.0.1
#r "nuget: Apple.Auth.Signin, 1.0.1"
// Install Apple.Auth.Signin as a Cake Addin
#addin nuget:?package=Apple.Auth.Signin&version=1.0.1
// Install Apple.Auth.Signin as a Cake Tool
#tool nuget:?package=Apple.Auth.Signin&version=1.0.1
https://github.com/Buminta/Apple.Auth.Signin
Simple for use Worker with Dotnet core 2.x or 3.x Exactly work in Unix/Linux/Ubuntu/Debian/Centos OS
What is AppleAuth.NET?
AppleAuth is a very simple library for .NET that encapsulates the logic for communicating with Apple's REST API for Sign in with Apple. The main goal is to make the implementation of Sign in with Apple easier for any web application.
How to use it?
Installation
To install the package execute the following command in your Package Manager Console:
PM> Install-Package Apple.Auth.Signin
Or alternatively just install the package using Nuget package manager. The project can be found here: Link to NuGet
Prerequisites
Configure Sign in with Apple from the Developer Portal
In order to use Sign in with Apple you must enroll in the Apple Developer Program. After you have enrolled in the program go to Developer Account Help and navigate to Configure app capabilities > Sign in with Apple. There you can find the information for configuring Sign in with Apple for your app.
// Get Your client_secret with 5 minutes exp.
// Method GetClientSecret(string teamId, string keyId, string clientId, string authKeyPath, int expAt = 5);
var clientSecret = Apple.Auth.Sigin.Token.GetClientSecret("teamId", "keyId", "clientId", "authKeyPath.p8");
// Get Your client_secret with custom one hour exp.
var clientSecret = Apple.Auth.Sigin.Token.GetClientSecret("teamId", "keyId", "clientId", "authKeyPath.p8", 60);
// Get Access token for verify client signin
// Method GetAccessToken(string clientId, string clientSecret, string grantType = "authorization_code|refresh_token", string code = null, string refreshToken = null, string redirectUri = null);
var appleRes = await Apple.Auth.Sigin.Token.GetAccessToken("clientId", clientSecret, "authorization_code", "yourClientCode");
// Reresh access token
var appleRes = await Token.GetAccessToken("clientId", clientSecret, "refresh_token", null, "refreshToken");
Contributing
You are more than welcome to contribute to the project and make it better. When contributing please try to maintain a strictly professional, respectful and friendly attitude. Also make sure you communicate the change you want to make via issue or any other method with the owners of this repository.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- BouncyCastle (>= 1.8.6.1)
- Newtonsoft.Json (>= 12.0.3)
- System.IdentityModel.Tokens.Jwt (>= 6.8.0)
- System.Text.Json (>= 5.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.