Twitch login + spring boot social security = Twitch has no control over the content or security of http://localhost:8080 error

I’m working on the twitch login but i got this error.
image

Twitch has no control over the content or security of http://localhost:8080

it didn’t even call back to redirect_uri

https://id.twitch.tv/oauth2/authorize?client_id=CLIENTKEYXXXXXX&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2Flogin%2Foauth2%2Fcode%2Ftwitch&response_type=code&scope=user%3Aread%3Aemail&state=uXf-oeXpxxKUbQgP7SaI6Vo9rNh-7xccLGXohzCxY-s%3D

anyone had an issue like this? please help me thanks!

This usually occurs as the redirect doesn’t match a redirect in the dev console

When you click continue it should ahve a ?error in the query string parameters

i checked but it is exactly same , i’m still working on this but this isn’t easily let me through.
thanks Barry

Are you sure?

Your URI above says your redirect is

http://localhost:8080/login/oauth2/code/twitch

I would guess you have

http://localhost:8080/login/oauth2/code/twitch/

In the console.

I’d do a spot test but you redacted your public clientID.

The continue button will (generally) redirect to the first URL in your redirect list if it’s invalid.
If it’s not that then you need to query the ?error in the query string parameters

thank you for sharing your idea.

I’ve put like this in cosole
image

and use code like this

but now i got this problem , it seems that i have to override some method from OAuth2AccessTokenResponse

{“exception”:"[invalid_token_response] An error occurred while attempting to retrieve the OAuth 2.0 Access Token Response: Error while extracting response for type [class org.springframework.security.oauth2.core.endpoint.OAuth2AccessTokenResponse] and content type [application/json]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: An error occurred reading the OAuth 2.0 Access Token Response: JSON parse error: Cannot deserialize instance of java.lang.String out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 146] (through reference chain: java.util.LinkedHashMap[“scope”]); nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot deserialize instance of java.lang.String out of START_ARRAY token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.lang.String out of START_ARRAY token\n at [Source: (PushbackInputStream); line: 1, column: 146] (through reference chain: java.util.LinkedHashMap[“scope”])",“timestamp”:1654725593389}

any idea, i would appreciated it