Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

In the OAuth protocol, how does oauth_callback return the parameters behind #?

Use the OAuth protocol to realize the single sign-on function of the project, but the project is redirected by the routing of vue, and the address after # is required to jump to the specified page, but the oauth_callback in the OAuth protocol seems to be unable to return the parameters after #.

I hope you guys can give me a solution if you have time, thank you guys in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Code would be helpful.
I’ll assume by ‘redirected by the routing of vue’ you mean you are using vue-router.
In your routes, you will specify paths which will require auth. Then, have middleware which supplies the auth or re-directs to a page where the authentication (login) can occur.
Is this callback the client’s token? Try taking these interactions out of the URL.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading