강정인

modified1

...@@ -7,7 +7,7 @@ var googleLogin = false; ...@@ -7,7 +7,7 @@ var googleLogin = false;
7 var kakaoLogin =false; 7 var kakaoLogin =false;
8 passport.use(new GoogleStrategy({ 8 passport.use(new GoogleStrategy({
9 clientID:'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com', 9 clientID:'978869138601-u3euf0c04sbdor68r30m599gilvjn91e.apps.googleusercontent.com',
10 - clientSecret:'N7Uh_oVQZt-almzA4DkM4bm_', 10 + clientSecret:'9ERYhDZJK-CrX3moES2z11ol',
11 callbackURL:'http://localhost:3000/auth/google/callback', 11 callbackURL:'http://localhost:3000/auth/google/callback',
12 scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly', 12 scope:['openid','email','https://www.googleapis.com/auth/calendar.readonly',
13 'https://www.googleapis.com/auth/calendar', 13 'https://www.googleapis.com/auth/calendar',
...@@ -29,7 +29,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{ ...@@ -29,7 +29,7 @@ router.get('/auth/google/callback',passport.authenticate('google',{
29 }); 29 });
30 30
31 const kakaoKey = { 31 const kakaoKey = {
32 - clientID: "18f0234f78991d20196ab12ba0583c26", 32 + clientID: "cf6ae2286a1b022bafa454588f32878b",
33 callbackURL: "/oauth/callback" 33 callbackURL: "/oauth/callback"
34 }; 34 };
35 35
......
...@@ -3,17 +3,24 @@ ...@@ -3,17 +3,24 @@
3 <head> 3 <head>
4 <title><%= title %></title> 4 <title><%= title %></title>
5 <link rel='stylesheet' href='/stylesheets/style.css' /> 5 <link rel='stylesheet' href='/stylesheets/style.css' />
6 -
7 </head> 6 </head>
8 <body> 7 <body>
9 - <h1><%= title %></h1> 8 + <div id="container">
10 - <p>Welcome to <%= title %></p> 9 + <center>
11 - 10 + <div id='item'><h1><font size="40">
12 - <form action='/auth/google' method='GET'> 11 + <%= title %></h1>
13 - <input type="submit" name='submit' value='Google Login'/> 12 + </font>
13 + </div>
14 + <div id='item'><p><font size="5">Welcome to <%= title %></font></p></div><br>
15 + <div id='item';">
16 + <form action='/auth/google' method='GET';">
17 + <input type="submit" name='submit' value='Google Login'>
14 </form> 18 </form>
19 + </div>
15 <form action='/kakao' method='GET'> 20 <form action='/kakao' method='GET'>
16 - <input type="submit" name='submit' value='Kakao Login'/> 21 + <input type="submit" name='submit' value='Kakao Login'>
17 </form> 22 </form>
23 + </center>
24 + </div>
18 </body> 25 </body>
19 </html> 26 </html>
...\ No newline at end of file ...\ No newline at end of file
......