spring-boot-react-oauth2-social-login-demo icon indicating copy to clipboard operation
spring-boot-react-oauth2-social-login-demo copied to clipboard

Project properties - token secret

Open raduhrihoreanu99 opened this issue 3 years ago • 3 comments

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

raduhrihoreanu99 avatar Jan 11 '21 15:01 raduhrihoreanu99

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 :)

ramazansakin avatar Feb 23 '21 08:02 ramazansakin

i can see nothing in red square bracket

kambleaa007 avatar Feb 24 '21 03:02 kambleaa007

By the way @raduhrihoreanu99 ,

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

ramazansakin avatar Feb 24 '21 05:02 ramazansakin