What is the correct method for handling oauth2.0 running on a server using the Ionic framework?

I am building an Ionic application with several third-party integrations. I already have a java server that performs oauth2 authentication for third parties and redirects the callback URL on the server itself.

Now my task is to open the application page after completing the server callback.

I tried the following method: monitoring URL changes in the application using ionic and redirecting after a successful callback.

What is the best way to handle this situation.

Thanks.

+7
angularjs ionic-framework ionic
source share
2 answers

Honestly, I did nothing of the kind. But, in my opinion, you can check out ngcordova oauth for implementing ideas.

var browserRef = window.open(your_url); browserRef.addEventListener("loadstart", function(event) { //your code }); browserRef.addEventListener('exit', function(event) { deferred.reject("The sign in flow was canceled"); }); 

Read more about the source oauth.js .

In addition, you can find a sample use of this implementation on this page.

+3
source share

http://mcgivery.com/using-custom-url-schemes-ionic-framework-app/

The above link may help you. If I think correctly, what do you want?

+2
source share

All Articles