All Projects → Wild-Pluto → godot-apple-signin

Wild-Pluto / godot-apple-signin

Licence: MIT license
Module for sign in with Apple in Godot

Programming Languages

objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
Objective-C++
1391 projects
shell
77523 projects
C++
36643 projects - #6 most used programming language
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to godot-apple-signin

GodotFAN
Facebook Audience Network Ad module for godot
Stars: ✭ 25 (-7.41%)
Mutual labels:  godot, godot-module
godot-android-plugin-firebase
Godot 3.2.2 Android plugin for Firebase
Stars: ✭ 41 (+51.85%)
Mutual labels:  godot, godot-module
godot-local-notification
Godot module for local notifications (android and iOS)
Stars: ✭ 111 (+311.11%)
Mutual labels:  godot, godot-module
godot box2d
A C++ module that integrates the Box2D library with the Godot game engine by providing nodes for standard Box2D objects.
Stars: ✭ 32 (+18.52%)
Mutual labels:  godot, godot-module
MySQL Module
MySQL connector to Godot Engine.
Stars: ✭ 30 (+11.11%)
Mutual labels:  godot, godot-module
PostgreSQLClient
PostgreSQL connector for Godot Engine in GDScript.
Stars: ✭ 28 (+3.7%)
Mutual labels:  godot, godot-module
nativelib-cli
NativeLib is a plugin management system for Godot engine.
Stars: ✭ 19 (-29.63%)
Mutual labels:  godot, godot-module
godot-radial-menu
A radial menu for Godot, supports Mobile & Desktop
Stars: ✭ 88 (+225.93%)
Mutual labels:  godot
godot-portal-demo
Experimenting with portals in Godot Engine
Stars: ✭ 66 (+144.44%)
Mutual labels:  godot
toziuha-night-oota
Opensource Metroidvania inspired on Castlevania Order of Ecclesia
Stars: ✭ 78 (+188.89%)
Mutual labels:  godot
godot-sugar
Experimental post-processing toolkit for Godot
Stars: ✭ 37 (+37.04%)
Mutual labels:  godot
godot 2d navmesh generator
Godot plugin that generates a 2D navigation mesh from collsion nodes.
Stars: ✭ 35 (+29.63%)
Mutual labels:  godot
godot-lua-pluginscript
Godot PluginScript for the Lua language, currently based on LuaJIT's FFI
Stars: ✭ 182 (+574.07%)
Mutual labels:  godot
gdscript-online.github.io
Try out GDScript without installing Godot
Stars: ✭ 62 (+129.63%)
Mutual labels:  godot
GodotProjects
Random projects made in Godot 2 and Godot 3
Stars: ✭ 12 (-55.56%)
Mutual labels:  godot
motion-trails
A simple motion trail renderer written in GDScript.
Stars: ✭ 52 (+92.59%)
Mutual labels:  godot
FreeRoamRoguelikeRacerPrototype
A 3D free roam racer in a procedurally generated map
Stars: ✭ 77 (+185.19%)
Mutual labels:  godot
gamemaker-godot-dictionary
A dictionary for people moving from GM:S to Godot
Stars: ✭ 172 (+537.04%)
Mutual labels:  godot
godot-admob-editor
This repository is for Godot's Addons to integrate natively AdMob to your Game Project without much configurations, with a beautiful UI and directly inside Godot Editor!
Stars: ✭ 43 (+59.26%)
Mutual labels:  godot
godot-blank-starter-template-3d
Godot 3.x basic starter project with some predefined settings to achieve an high quality look
Stars: ✭ 28 (+3.7%)
Mutual labels:  godot

Code of this module based on apple-signin-unity

For Godot version less than 3.3 use 3.x branch

Installation

Download plugin and unzip it to ios/plugins directory of the project.
Enable plugin in Export dialog

Methods

is_current_platform_supported() -> bool
login(with_email:bool, with_name:bool, nonce:Variant) -> void
quick_login(nonce:Variant) -> void
get_credential_state(user_id:String) -> void

Signals

login_success(result:Dictionary)
login_error(result:Dictionary)
credential_success(result:Dictionary)
credential_error(result:Dictionary)

Example of use

extends Node

var apple_sign_in:Object

func _ready():
	if Engine.has_singleton("GodotAppleSignIn"):
		apple_sign_in = Engine.get_singleton("GodotAppleSignIn")
		
		apple_sign_in.connect("login_success", self, "_on_login_success")
		apple_sign_in.connect("login_error", self, "_on_login_error")
		apple_sign_in.connect("credential_success", self, "_on_credential_success")
		apple_sign_in.connect("credential_error", self, "_on_credential_error")
		
	if !apple_sign_in or !apple_sign_in.is_current_platform_supported():
		return
	
#	generate nonce
	randomize()
	var key := PoolByteArray()
	for i in 32:
		key.append(randi() % 256)
		
	var nonce := key.hex_encode().sha256_text()
	
#	with email and name
	apple_sign_in.login(true, true, nonce)
	
func _on_login_success(result):
	print(result)
	
func _on_login_error(result):
	print(result)
	
func _on_credential_success(result):
	print(result)
	
func _on_credential_error(result):
	print(result)

Requirements

Sign in with Apple capability

Build from source

Just run scripts/build.sh -v 3.3.4-stable where -v is desired Godot version. Binaries were placed in bin directory and ready to use plugin archive in dist directory

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].