I'm implementing a server-side OAuth for my API. I've seen here that Google allows full javascript written applications to use its API.
In this case, because we are on a "view-source" environment, we are not using the client secret, thus we can't be sure of the Application identity.
Example: If I see a full-javascript application for Google, I just have to view the source, get the client key, and put on my own website an edited version of the code. If an user has accepted the app on the first website, I will be able to use his data (since the app is accepted, the accept part will be totally invisible for the user).
Even if the user has to reaccept the app, if he accepts it, I will have an access with the first app identity.
I'm a bit scared by this method, and I'm very surprised that Google doesn't expose the different risks in the documentation nor during the authorization phase. I must be missing something... Can you help me?
I'm not quite sure if I've made me understandable, but if you have any questions please ask.
(And sorry for my english)