Jump to content

Login form with a "Sign in with Google" button


stevewong

Recommended Posts

  • 1 month later...
On 11/26/2020 at 6:58 AM, stevewong said:

Updated login demo, now works for Google, Azure and Twitter, enjoy !

SignIn_Demo.zip 11.71 kB · 150 downloads

This has been a great help to us, thanks Steve.

One question (for everyone). With azure we've used response_type=token with response_mode=fragment to get an id_token however we get  .../?oauth2callback=azure#access_token=eyJ0eXAiO..... as the response with  # being used as a separator.

Is there an easy way to get the access token as only oauth2callback=azure is listed in the UniApplication.parameters?

EDIT: Ah I think I've found the answer, for security reasons fragments, anything after the #, aren't sent to the server from the browser so we have to stick with the code flow method

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...