Osclass Support Forums

Osclass plugin support => Rest API Plugin => Topic started by: bobyrou on September 17, 2020, 02:39:39 PM

Title: Login with API
Post by: bobyrou on September 17, 2020, 02:39:39 PM
How to call API to Login with username and password? or to check if user's login details are correct when user tries to login? I looked on Rest API plugin and I can't find anywhere anything about. Any help is much appreciated!
Title: Re: Login with API
Post by: MB Themes on September 17, 2020, 03:31:26 PM
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.
Title: Re: Login with API
Post by: bobyrou on September 17, 2020, 04:35:51 PM
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.

Then how can I let users to Login on the app? I have an api to register which works fine but I don't have an api to login.
Title: Re: Login with API
Post by: MB Themes on September 17, 2020, 05:10:01 PM
Login is about session, cannot be solved via api.
You must use proper solution in app program.
Title: Re: Login with API
Post by: Smithtech on August 14, 2023, 07:48:02 PM
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.

Then how can I let users to Login on the app? I have an api to register which works fine but I don't have an api to login.


@bobyrou, please, can you share the API to register? Facing issue with Passwords do not match.

.....Did you ever get your login working. I also checked plugin but there is no mention of login in the entire API documentation. If we are able to call login, the rest can be managed in app state and other elements.

Will appreciate if you can assist with your solution
Title: Re: Login with API
Post by: Smithtech on August 14, 2023, 07:49:54 PM
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.

I think this answer is a bit different from the question asked. can you please specify the API call to LOGIN users? It is not mentioned in the documentation. We at least see ADD A NEW USER
Title: Re: Login with API
Post by: MB Themes on August 24, 2023, 03:24:24 PM
@bobyrou
Login is action where session for user is stored in browser.
This is irrelevant when getting data from database from outside application, as there is no browser used on site and it does not make quite sense.
You cannot login trough API and act like logged in user in i.e. android app. Login must be made in that app directly.

I think this answer is a bit different from the question asked. can you please specify the API call to LOGIN users? It is not mentioned in the documentation. We at least see ADD A NEW USER

No, login is made by application.