Menu
Who Do Is
  • Home
  • What
  • How
  • Is
  • Can
  • Are
  • Does
  • Do
  • Why
  • Who
  • Where
  • Which
  • Which
  • Should
  • Will
  • When
  • What’s
  • Did
Who Do Is

[ANSWERED] android – How to pass data securely from website to App?

Posted on November 14, 2022

Solution 1 :

You should create an API with Basic Auth or OAuth. You can’t rely on your URL because it can be caught in logs.
Check this course out

Solution 2 :

In addition to shayegh’s answer, you need to understand that every endpoint that you access within your application is public by nature. Everyone can access your server’s endpoint just as well as your mobile application (created by you) can. However, you can make your server’s endpoint protected by adding authorization requirements on your endpoint.

Authorization

There are many authorization protocols out there, OAuth, OAuth2.0, Basic Auth (credentials like email and password), etc. All of these are just ways to grant anyone access to resources in your endpoint. Think of it as a lock on your home door, only someone with a key can go into your house and make a mess.

Please keep in mind that this is a very simplified version of what authorization protocols actually look like, how it actually secures the distribution of access keys/tokens, etc.

Additional questions and answers

  1. I tried to generate log files from my android phone, and I can’t seem to find the .php file from the log files. Is that possible for someone to decode the android app or the iphone app so that they can view my source code?

    Answer: I would always assume that everything that is happening on client’s side (mobile app, WebApp’s front end, etc) is beyond my control. That means anyone can access, read, tweak my client applications. With that said, I would assume that it is indeed possible for someone to unravel your android / iPhone app (get the source code) to get your client side keys.

  2. How would this (OAuth/basic) help? Surely the person creating the other app would just add the OAuth/basic auth as well, wouldn’t they?

    In order for that other person to access the protected endpoint they would need to have access to your access tokens of the original app. On top of that, they would need to do it fast because usually access tokens only lasts for a short period of time.

  3. Will using Basic Auth or OAuth key works if they are able to see my code?

    Yes and no, depending on your implementation, attackers might be able to unravel your app and somehow fetch user’s credentials or tokens from bad practices.

READ  [ANSWERED] android - How to get around passing data models to fragment arguments to avoid Transaction Too Large Exception?
Powered by Inline Related Posts

Problem :

I have an android and iPhone app, and the apps are getting data
from my website based on some conditions they select on the app.

I created a secured url that is not open to the public (can’t be find on our website) and using a hash code that I thought was secure enough. Something like the following

http://test.com/data/get_data.php?key=akl;sd8234

The extra conditions they select in the app will be append as query parameters to the same url.

Base on the condition, the php file will then out data in json format.

However, I discovered recently someone else create the exact same app and actually getting data from my server, and from the secret url that I created. The reason I know is because I change something on that secret get_data.php page and it reflected on their app.

I don’t know who they get a hold to my url, is there a way to create a more secure way to pass the data from my web server to the app so others can’t steal my data?

Comments

Comment posted by Julia

Hi, is there a way to do it without requiring the user to enter an username and password? In the app, I didn’t require the user to enter any information. I want the user experience to be as simple as possible.

Comment posted by shayegh

Yes, That course will go over it. What you want is an API Key that you will use to make API calls to your backend from your application. This Key is a constant and won’t need to change.

Comment posted by Julia

I tried to generate log files from my android phone, and I can’t seem to find the .php file from the log files. Is that possible for someone to decode the android app or the iphone app so that they can view my source code?

READ  [ANSWERED] android - Button needs to get clicked twice
Powered by Inline Related Posts

Comment posted by Ryan M

How would this help? Surely the person creating the other app would just add the OAuth/basic auth as well, wouldn’t they?

Comment posted by tools like this

They could use

Recent Posts

  • How can I play with my cat without toys?
  • What is a bag pipe band called?
  • Are Honda Civics actually fast?
  • Are Yankee candles toxic?
  • How do I pair my Michael Kors smartwatch with my Android?

Recent Comments

No comments to show.

Archives

  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuántas
  • ¿Cuánto
  • ¿Que
  • ¿Quién
  • 90” and 108” so you may have to round up to the nearest size.
  • and delete any Spotify folders from it. Once this is done
  • Android
  • Are
  • At
  • Bei
  • blink
  • C'est
  • Can
  • carbs
  • Comment
  • Did
  • Do
  • Does
  • During
  • For
  • Has
  • How
  • In
  • Is
  • Ist
  • Kann
  • Können
  • nouveau
  • On
  • or 108 inches.2020-08-03
  • Où
  • owning
  • Pourquoi
  • Puis-je
  • Quand
  • Quante
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • spiritual
  • tap the downward-facing arrow on the top left. A downward-facing arrow will appear underneath each song in the album; they'll turn green as the download completes.2020-07-28
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welcher
  • Welches
  • Welke
  • Wer
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Whose
  • Why
  • Wie
  • Will
  • Wo
  • Woher
  • you will receive two curtains each with the same measurements of width 66"" (168cm) x drop 54""(137cm).
  • you'll see a green downward-facing arrow next to each song.2021-02-26
©2023 Who Do Is | Powered by SuperbThemes & WordPress