I'm working on a mobile app specifically for students at my university. Our school's web portal uses WordPress (or at least the login page is /wp-login.php).
Is there a way to send the user's browser to the login page and then send them back to the app with a confirmation that they were able to sign in? Or even better, include their username? I've tried a bunch of different Google searches, but most of what I've found requires installing/configuring plugins in the WordPress install, but that's not an option, since I'm just a student.
Thank you!
Well, since the site is not hosted at WordPress.com, you will have to implement your own API Endpoint for your Single Sign-On procedure.
But first contact the site's admin or developer/s and find out if they have already implemented such a mechanism.
If they haven't you can see here how to create an API Endpoint in WordPress, that your mobile application will use to authenticate users.
You can find more information here.
If your university's site does not support the functionality and they are not willing to implement it, I 'm afraid that you cannot do anything...
Related
Based on a research that I have made on Android login, I have found out that for Android to have a login feature, it requires a web service.
Android sends login credential to web service and will only determine whether a user's credential is valid based on the return result of the web service.
As I am currently a junior developer, I am wonder what are the other approach that modern developers used in handling Android login feature? Do they use Google Firebase, or they used web service to handle the login as well?
In addition they can use social media login such as Facebook,google...etc as another option to let user login to app if user dont like to use app web services...to add this features you have to know about OAuth 2.0 because its used by those giant tech above then go and read their docs they explain all with the details of details....also for web services check out this tut Android Login and Registration with PHP, MySQL and SQLite also you can read this A Massive Guide to Building a RESTful API for Your Mobile App
It depends on what resources you have access to. I work for a variety of enterprises and find that it is not uncommon for them to use google firebase as a login/authentication component, but many of them create their own web service to handle user login. Some use Single Sign On services like Okta.
Is there any API to share user's login/password data between iOS app and Android app? Given I'm the owner/developer of both apps.
For Android there is Google's Smart Lock for Passwords. And for iOS there is Apple's Shared Web Credentials. These allow sharing credentials between web app and native app on the corresponding mobile platform. But I can't find any evidence that these technologies allow or not sharing between different native platforms.
If not, maybe there is another solution?
Possibly not what you want to hear but I would say this is not expected behaviour, nor is it secure. The expected behaviour would be have your user login to both platforms, after which their credentials are saved on both platforms.
There are alternative solutions however, such as OAuth. You can have user's authenticate via Facebook, Instagram or the many other popular platforms. That way the user does not need to enter a password, or remember one at all.
Another alternative could be to do instant sign in via an email link. I've seen that get popular recently. A user enters their email/username, they receive an email with a button to confirm the sign in.
One way could be creating a custom API and posting credentials from both platforms to that API.
I want to add user authorize system in my Android application. At first glance it looks very easy, however; when I start to research, I encountered too many problems. Because every person can download my apk file and can see my auth system code and can send HTTP POST requests from anywhere.
Firstly I founded that link below
http://android-developers.blogspot.in/2013/01/verifying-back-end-calls-from-android.html
It was looked me very complex and I thought that there can be more simple ways that can be fee.
I tried to use Amazon Cognito and completed all login protocols using facebook and google+. Finally I encountered a big frustrating problem. If user would use different login system in different devices, Cognito can not understand that are the same user. I asked this problem in Cognito forums and their offical answer is below.
We use tokens issued by providers to determine identity. If you login
using Facebook on one device and you use Google on another device,
there is no way for us to determine that these tokens belong to the
same user
then I decided to use Google Cloud mobile Solutions but I learned that It is banned in China mainland which My app will also be Chinese.
parse.com is very slightly but It does not have Google plus login.
I haven't only tried Microsoft Azure because Its documentations are very confusing. But If I can be sure that It compeletely works, I would learn everything about Azure.
I am enhuaist to search the best suitable way save my users data on remote server. What is your suggestions ? Which way should I follow ?
Thank you.
Why is Cognito not working for you? There is no identity provider who will ever be able to tell a Facebook user and a Google+ user are the same person. They are completely separate platforms. With Cognito, if a user logs in to both Google+ and Facebook on the same device, then it will know they are the same person. Amazon SNS (Mobile push) can also push to Chinese devices.
I'm developing a web server (Using J2EE/Wildfly 8.2) with a RESTful API for the Android clients. To authenticate the connected client I would like to use a token (OAUTH2 or whatever is appropriate) from that client rather have to deal with the messy password admin in the server.
Could someone point me at a good example. Ideally it would use the Google account on the Android device as most users (I would think) have an active Google account.
As always, many thanks for your help getting me started on this.
I think it will be helpful for you to take a look at Stormpath. In your backend, you can use the Stormpath Java SDK to easily delegate all your user-management needs. Since you are specifically interested in the social login functionality, this is the way you would do it with Stormpath:
There are two options here...
You can completely delegate the login/register functionality to Stormpath via its IDSite. It supports Google, Facebook, LinkedIn and Github login.
You can create and host your your own social login forms. In this case, your front end will display the login buttons. When the user presses the login button, your front end will send the credentials to the backend-end where you will need to execute code similar to what was documented here
I want to integrate GMAIL Single Sign on (SSO) on my App.. I am not getting the library for Gmail. Please Anyone can help me out. Thanks in advance
Refer to this link
https://developers.google.com/accounts/docs/MobileApps
Authenticating Users in Mobile Apps
Many web applications have companion mobile applications, such as native Android and iOS apps. These native applications typically ask the user for their email address and password to authenticate them. This method of authentication will not work when the web application has a complex login system which uses technologies like OpenID or SAML for federated authentication. In this guide, we'll describe an alternative technique to enable mobile applications to work for all users, regardless of how they are authenticated.
If you're anxious to see how this works, you can check out the Demo and Sample Code section at the bottom of this page.