Toggle navigation
Toggle navigation
This project
Loading...
Sign in
유희정
/
Reminder-Talk
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
강정인
2019-12-04 00:38:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43fb207b8c4eab7d43e73469206e445fe8ba3499
43fb207b
1 parent
3d45ee5e
modified1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
12 deletions
routes/index.js
views/index.ejs
routes/index.js
View file @
43fb207
...
...
@@ -7,7 +7,7 @@ var googleLogin = false;
var
kakaoLogin
=
false
;
passport
.
use
(
new
GoogleStrategy
({
clientID
:
'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com'
,
clientSecret
:
'
N7Uh_oVQZt-almzA4DkM4bm_
'
,
clientSecret
:
'
9ERYhDZJK-CrX3moES2z11ol
'
,
callbackURL
:
'http://localhost:3000/auth/google/callback'
,
scope
:[
'openid'
,
'email'
,
'https://www.googleapis.com/auth/calendar.readonly'
,
'https://www.googleapis.com/auth/calendar'
,
...
...
@@ -29,7 +29,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{
});
const
kakaoKey
=
{
clientID
:
"
18f0234f78991d20196ab12ba0583c26
"
,
clientID
:
"
cf6ae2286a1b022bafa454588f32878b
"
,
callbackURL
:
"/oauth/callback"
};
...
...
views/index.ejs
View file @
43fb207
...
...
@@ -3,17 +3,24 @@
<head>
<title>
<
%= title %>
</title>
<link
rel=
'stylesheet'
href=
'/stylesheets/style.css'
/>
</head>
<body>
<h1>
<
%= title %>
</h1>
<p>
Welcome to
<
%= title %>
</p>
<form
action=
'/auth/google'
method=
'GET'
>
<input
type=
"submit"
name=
'submit'
value=
'Google Login'
/>
</form>
<form
action=
'/kakao'
method=
'GET'
>
<input
type=
"submit"
name=
'submit'
value=
'Kakao Login'
/>
</form>
<div
id=
"container"
>
<center>
<div
id=
'item'
><h1><font
size=
"40"
>
<
%= title %>
</h1>
</font>
</div>
<div
id=
'item'
><p><font
size=
"5"
>
Welcome to
<
%= title %>
</font></p></div><br>
<div
id=
'item'
;"
>
<form
action=
'/auth/google'
method=
'GET'
;"
>
<input
type=
"submit"
name=
'submit'
value=
'Google Login'
>
</form>
</div>
<form
action=
'/kakao'
method=
'GET'
>
<input
type=
"submit"
name=
'submit'
value=
'Kakao Login'
>
</form>
</center>
</div>
</body>
</html>
\ No newline at end of file
...
...
Please
register
or
login
to post a comment