Crowd Mismatch token while SSO between JIRA and thrid party app. Can someone assist?

Rahul Arora October 29, 2017

I am assuming that somehow my validation factor isn't good enough to accept the token for another application, though I can login into third party application and JIRA separately via crowd authentication. Here is the snippet of the logs:

 

017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Generating Token for principal: AroraRahul

2017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Adding remote address of 10.34.7.134

2017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [manager.token.factory.TokenKeyGeneratorImpl] Adding Random-Number of ValidationFactor[Random-Number=7647594814225824346]

2017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [crowd.manager.authentication.TokenAuthenticationManagerImpl] Current Validation Factors:

ValidationFactor[remote_address=127.0.0.1], ValidationFactor[X-Forwarded-For=10.34.7.134]

2017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [crowd.manager.authentication.TokenAuthenticationManagerImpl] comparing existing token Token{identifierHash='sLfTZcWbBQaW55xqhy9QRQ00', lastAccessedTime=1509271459529, createdDate=2017-10-29 06:04:20.0, duration=null, name='AroraRahul', directoryId=32770} with a validation token Token{identifierHash='ZUekGOFZ0GxdRxq5aFjLNw00', lastAccessedTime=1509271481604, createdDate=Sun Oct 29 06:04:41 EDT 2017, duration=null, name='AroraRahul', directoryId=32770}

2017-10-29 06:04:41,604 http-bio-8095-exec-13 DEBUG [crowd.manager.authentication.TokenAuthenticationManagerImpl$TokenValidationFailure] Existing token 'E4NHkpy3nQWUZSy9ghUDpA00' for user 'AroraRahul' does not match new token 'Ht61ZiIz09sl74cusjfcow00' with validation factors 'ValidationFactor[remote_address=127.0.0.1], ValidationFactor[X-Forwarded-For=10.34.7.134]'

2017-10-29 06:04:41,605 http-bio-8095-exec-13 DEBUG [crowd.manager.authentication.TokenAuthenticationManagerImpl] The token keys don't match

 

3 answers

2 votes
Rahul Arora June 27, 2018

Actually my issue was occurring from third party side which was trying to access the crowd for single sign on and unable to pass x-forwarded IP to perform consistent IP address with my JIRA application and failing to match the token for SSO between Jira and third party app.

 

Issue was resolved when I added the code to pass x-forwarded IP to the crowd instead of remote IP address.

Matt George June 27, 2018

Awesome, nice one!

1 vote
Matt George June 27, 2018

Hello,

I've stumbled into this issue myself however we found that in Crowd we needed to untick the tick box that says "Require consistent client IP address" under the Session Configuration setting menu.

We were getting pretty much the same error message as you so if you're still having trouble I hope this helps!

 

Thanks,

Matt

0 votes
edwin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2017

Try clearing your browser cache.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events