Skip to content

Instantly share code, notes, and snippets.

@nicogaspa
Last active June 22, 2019 08:36
Show Gist options
  • Save nicogaspa/cd49965935fc58b8741adb3d13fccc80 to your computer and use it in GitHub Desktop.
Save nicogaspa/cd49965935fc58b8741adb3d13fccc80 to your computer and use it in GitHub Desktop.
Simple Login redirect to Google Auth
<!DOCTYPE html>
<html lang="en-us">
<head>
<title>Your Skill</title>
</head>
<body>
<div>
<p>Welcome to the skill</p>
<p>Click on the button to continue</p>
</div>
<script language="javascript" type="text/javascript">
var urlParameter = window.location.search.substr(1);
</script>
<a href="https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&amp;"
onclick="location.href=this.href+urlParameter;return false;">
Login
</a>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment