We are a small shop and focus on web development. We have a website that users need to login. I want to outsource the app development by getting someone to build the app and packages for android and ios - but basically our website will be the application.We've done a test that works fine, but the user lands on the homepage and has to login every time.I'm looking for a pattern that I can use whereby the app will open and the user is automatically logged in through the website when the page is initially loaded. My question is - what is the simplest solution that I can implement this with the least dependencies between the app and the website?Thanks
Pattern to store login credentials for a web based mobile app
architecture;web applications;mobile
It's not really a pattern, but this is a common flow for programmatic login to single sign-on.Native app makes API request to authentication service with user credentials. If credentials are correct temporary session token is returnedNative app opens web view to authenticate session tokenBrowser navigates to authentication endpointBackend verifies session token with auth serviceUser claims are returned (if session token is valid)Backend sends redirect to web browser with destination and sets a session cookie in the browser.Inspiration from here.