To simplify configuring applications to authenticating using Twitter / X v2 API we should add Twitter/X to the CommonOAuth2Provider.

spring.security.oauth2.client.registration.x.scope=users.read,tweet.read

spring.security.oauth2.client.provider.x.authorization-uri=https://x.com/i/oauth2/authorize
spring.security.oauth2.client.provider.x.token-uri=https://api.x.com/2/oauth2/token
spring.security.oauth2.client.provider.x.user-info-uri=https://api.x.com/2/users/me
spring.security.oauth2.client.provider.x.user-name-attribute=username

Comment From: kiruthiga1793

Hi @rwinch , I would like to contribute to this issue. Can you assign me or can I join you for support?

Comment From: rwinch

Thank you for volunteering @kiruthiga1793! This issue is now assigned to you. Looking forward to seeing the pull request!

Comment From: kiruthiga1793

Hi @rwinch , I have made the changes in my local. To which branch do I need to create a pull request from my feature branch?

Comment From: rwinch

Thank you @kiruthiga1793! Please create this against main