Configuring Twitch With Spring boot for Oauth

getting this error while clicking on link to login through Twitch the hyper link clicked id : https://id.twitch.tv/oauth2/authorize

The Properties provided
spring.security.oauth2.client.registration.twitch.client-id=myclientid
spring.security.oauth2.client.registration.twitch.client-secret=myclientsecret
spring.security.oauth2.client.registration.twitch.client-authentication-method=post
spring.security.oauth2.client.registration.twitch.redirect-uri=http://localhost:8080/login/oauth2/code/twitch
spring.security.oauth2.client.registration.twitch.provider=twitch
spring.security.oauth2.client.registration.twitch.scope=user:read:email
spring.security.oauth2.client.registration.twitch.authorization-grant-type=authorization_code

spring.security.oauth2.client.provider.twitch.authorization-uri=https://id.twitch.tv/oauth2/authorize
spring.security.oauth2.client.provider.twitch.token-uri=https://id.twitch.tv/oauth2/token
spring.security.oauth2.client.provider.twitch.user-info-uri=https://id.twitch.tv/oauth2/userinfo
spring.security.oauth2.client.provider.twitch.user-name-attribute=id

Getting this error
{“status”:400,“message”:“missing response type”}

This would suggest a bug or issue with the library “Spring Boot”

as it’s not added a response_type to the URL generated for starting the oAuth flow

For information on the userflow for oAuth see: Getting OAuth Access Tokens | Twitch Developers

Thanks for your reply . But can you guide upon that there is anything I am missing the configuration part ?

or I have to pass all these parameters in the hyperlink clicked by user or it will automatically pick from properties file?

You are asking a question specific about a library which would be better suited to ask in Spring Boot’s support routes.

So I have no idea if spring boot is configured correctly.

Ok thanks for guiding .

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.