Unity logo
取消
购物车
应用
Sell Assets

11000+款5星资源

8.5万+用户参与评分

10万+社区成员鼎力支持

每款资源都经过 Unity 审核

首页
工具
整合
1/5
Simple Sign-In with Microsoft provides Microsoft sign-in with OAuth 2.0 for Android, iOS, Windows, Mac, Universal Windows Platform (UWP) and WebGL apps made with Unity. You can also get access tokens to make REST API calls.

Need sign-in for other platforms?
Google
Apple
Facebook
X (Twitter)
Telegram
Microsoft

Authentication may be a headache, especially for beginners, especially on different platforms. So I decided to take a fresh look of current possibilities that Microsoft and Unity provide at the moment. And after a week of research I said "Bingo!". My asset is an extremely simple solution with about 200 lines of code only. Lightweight, tiny and clean, with no massive plugins and 3rd party libs!

Benefits
● Cross-platform user auth for cross-platform games and apps
● No plugins, not 3rd party libs, no dependencies
● No impact to build size
● Get access tokens for integration with other Microsoft services
● More security for client-server apps (get access tokens on a client, get all user data on a server to avoid tampering)
● JSON Web Tokens (JWT) validation
● SFSafariViewController is used on iOS (required by App Store review)
● Deep linking for Windows (UNITY_STANDALONE_WIN)

Setup steps
Please visit our GitHub for setup instructions.

Generic workflow (for platforms that support deep linking)
● Your app navigates users to Microsoft using a default web browser
● Users perform sign-in to their Microsoft account
● Microsoft redirects users to your app (using deep linking when possible) and provides an authorization code in URI parameters
● The app is activated and obtains an authorization code
● The app exchanges the code for an access token
● The app requests user data with the access token (ID, name, email and other data according access scope defined)

Loopback flow for Editor and Windows (optional)
● Microsoft redirects users to http://localhost:PORT/
● The app listens to localhost using HttpListener

Middlware flow for WebGL
● Redirect to Authorization Middleware is used to temporary save an auth code
● The app obtains the code from Authorization Middleware with a POST request

Known issues
Please visit our GitHub to check known issues.

Support
GitHub - Wiki
GitHub - FAQ & Troubleshooting
GitHub - Bugs & requests
Discord - Questions, live chat with developers

It would be super awesome if you rate ★★★★★ our asset and leave your feedback! Your reviews inspire us for creating and improving our assets. Thanks and good luck with your projects!

Simple Sign-In with Microsoft

(4)
5 users have favourite this asset
(5)
$19.90
席位
1
更新的价格和增值税在结算时计算
退款政策
该资源受Unity资源商店退款政策约束。有关详细信息,请参见《最终用户许可协议》(EULA)中的第2.9.3节。
安全结账方式:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
许可证类型
文件大小
62.2 KB
最新版本
1.2
最新发布日期
2024年10月19日
原始 Unity 版本
2021.3.45
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持
Unity logo
语言
反馈
合作伙伴计划
合作伙伴
USD
EUR
Copyright © 2025 Unity Technologies
所有价格不包含税
USD
EUR