TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
selvi jp
NA
323
69.6k
Login into google javascript api
May 4 2021 12:13 PM
This is m code i can login with google but i want redirect page with display email
<script>
$(document).ready(function () {
$('#btnGoogleLogin').click(function () {
var OAUTHURL = 'https://accounts.google.com/o/oauth2/auth?';
var VALIDURL = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=';
var SCOPE = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
var CLIENTID = '556152330944-irc73ah0r7gbar8n1k27m04ag1bfmbft.apps.googleusercontent.com';
var REDIRECT = 'https://localhost:44328/Home/Index';
var LOGOUT = 'http://localhost:44328/Home/Login';
var TYPE = 'token';
window.location.href = OAUTHURL + 'scope=' + SCOPE + '&client_id=' + CLIENTID + '&redirect_uri=' + REDIRECT + '&response_type=' + TYPE;
});
});
</script>
Reply
Answers (
0
)
Cronjob in asp.net core
multiple images insert by separate table using webapi