callicoder / spring-boot-react-oauth2-social-login-demo

Spring Boot React OAuth2 Social Login with Google, Facebook, and Github
1.44k stars 702 forks source link

Project properties - token secret #40

Open raduhrihoreanu99 opened 3 years ago

raduhrihoreanu99 commented 3 years ago

Hello. I'm confused about these two properties in application.yaml:

tokenSecret: 926D96C90030DD58429D2751AC1BDBBC tokenExpirationMsec: 864000000

From where do you get the tokenSecret value? Is that a unique value for each app? I try facebook login, the server gives me a JWToken created based on some properties among whichL tokenSecret and tokenExpirationMsec but when I make a request with that token it gives me 401 (Unauthenticated).

Screenshot_13 image

ramazansakin commented 3 years ago

Hi @raduhrihoreanu99 ,

From where do you get the tokenSecret value?

when you generating and validating the token. Did u check TokenProvider class?

If you request with an old token, that could be expired and you need to get refresh one and try again :)

kambleaa007 commented 3 years ago

i can see nothing in red square bracket

ramazansakin commented 3 years ago

By the way @raduhrihoreanu99 ,

what s the mean of 8379 port ? Did u change the spring app's port ?