Skip to content

Commit

Permalink
Merge pull request #92 from JakduK/jwt
Browse files Browse the repository at this point in the history
jwt 설정 값 추가.
  • Loading branch information
pio authored Jul 29, 2016
2 parents 96877a6 + 479a171 commit 00e2b68
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public class AuthRestController {
@ApiOperation(value = "이메일 기반 로그인", produces = "application/json", response = AuthenticationResponse.class)
@RequestMapping(value = "/login", method = RequestMethod.POST)
public AuthenticationResponse loginSocialUser(@RequestBody LoginEmailUserForm form,
Device device) {
Device device) {

// Perform the authentication
Authentication authentication = this.authenticationManager.authenticate(
Expand Down Expand Up @@ -135,10 +135,9 @@ public AuthenticationResponse refreshAndGetAuthenticationToken(HttpServletReques

@ApiOperation(value = "SNS 기반 로그인", produces = "application/json", response = EmptyJsonResponse.class)
@RequestMapping(value = "/login/social/{providerId}", method = RequestMethod.POST)
public EmptyJsonResponse loginSocialUser(
@PathVariable String providerId,
@Valid @RequestBody LoginSocialUserForm form,
NativeWebRequest request) {
public EmptyJsonResponse loginSocialUser(@PathVariable String providerId,
@Valid @RequestBody LoginSocialUserForm form,
NativeWebRequest request) {

CommonConst.ACCOUNT_TYPE convertProviderId = CommonConst.ACCOUNT_TYPE.valueOf(providerId.toUpperCase());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ slack.board.channel = #jakduk_board_noti

# swagger
swagger.protocol = https
swagger.host = api.jakduk.com
swagger.host = api.jakduk.com

# App configuration
jwt.token.header=Authorization
jwt.token.secret=JakduK11!
jwt.token.expiration=604800
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,9 @@ slack.board.channel = #jakduk_board_noti

# swagger
swagger.protocol = https
swagger.host = staging.jakduk.com:8080
swagger.host = staging.jakduk.com:8080

# App configuration
jwt.token.header=Authorization
jwt.token.secret=JakduK11!
jwt.token.expiration=604800

0 comments on commit 00e2b68

Please sign in to comment.