WordPress LMS for Web and mobile › Forums › Ionic App Support › oAuth Issue
Tagged: login, oauth
Hi, I am migrating my Ionic WPLMS app to Flutter and develop it in-house. I need your favour to explain oAuth mechanism in WPLMS Ionic app so I can implement it in Flutter.
First, I have read the mechanic in your documentation:
Auth page > Verify > Auth Code > Token
But, Ionic WPLMS app (and Flutter) does not use webview to login. Meanwhile, the auth page is web:
On Ionic Config.ts, the base URL is /wp-json/wplms/v1, not the link above.
When login page in Ionic App is not webview, what is it’s relation to auth page /wplmoauth/authorize?client_id….
We get auth_token after when user is logged in as access_token. After this , each request carry this authorization token to verify user at server end : http://prntscr.com/onf333
Refer these screenshots: http://prntscr.com/onex8o http://prntscr.com/onexwc http://prntscr.com/oneysv
Also this is api collection you can import and test from your site : https://we.tl/t-dRr5LWFleW
Solved! Thank you.