Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by anilhdas · Dec 28, 2016 at 08:10 AM · androidiosloginauthenticationuser-profiles

How to add custom SSO (Single Sign On) login in Unity 3D application?

Hi, I am in need of adding a Single Sign on feature in my game with our internal login system.

I've added Single Sign On with facebook earlier, but in this case,

I will need to add SSO with my company's internal authentication system (called Ultimatix in TCS).

NOTE : The company's authentication system (Ultimatix) supports SSO with web applications. But I am unsure whether it can be reused for Unity 3D applications.

So kindly guide me in terms of what SDK (if relevant), would be required to add for integrate SSO with our back end system.

Any lights thrown into this topic is welcomed.

PS : My game is targeted into both android and iOS. So I am wondering, will that add any complexities into the above requirements?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by anilhdas · Mar 23, 2017 at 11:32 AM

So as me and my team mate was breaking our heads on it, finally we found a solution.

  1. You can render a web page inside Unity using plugins from Asset store (You can find a detailed answer about this here)

  2. Register the app name with your company's authentication system, (Ultimatix, in this case).

  3. You will get an App Id, an App secret and a callback URL.

  4. When the game begins, load the authentication URL (You can get this by inquiring to your company's authentication team).

  5. While you load the URL, pass the app id and callback URL as parameters.

  6. Now when the authentication is successful, user would be redirected back to the 'callback URL'.

  7. When the redirection happens, you will have all the data that you need as part of the response (like email id, name, etc) depending on your company's policies.

  8. Store it some where in Playerprefs or a local db and load the next scene.

  9. That's it.

Hope this helps someone else, Happy developing :-)

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Brain-_-Fail · Nov 23, 2019 at 06:08 AM 0
Share

Hi, Thankyou for your answer, really helpful. I don't understand Step 7: "When the redirection happens, you will have all the data that you need as part of the response (like email id, name, etc) depending on your company's policies. ". Using WebView plugin how were you able to parse and store data from the server response (email id, name etc). There is no way documented, the plugin seems to simply render a webpage in unity and nothing else. Did you use Unity WWW class or HTTPClient in C# to get the html markup of the redirected URL and parse the user data from that ?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

62 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Login to Steam from Android app 0 Answers

Implement Azure Active Directory Authentication into android/ios project. 3 Answers

Facebook login dialogue won't appear in VR projects 1 Answer

What is the most commonly used way of authenticating users in iOS apps? 0 Answers

Most commonly used login service in iOS apps? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges