Azure / Azure/static-web-apps

Twitter API v2 Authentication Issue

Open
#1,130 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
346
Forks
67
PR merge metrics
No merged PRs in 30d

Description

I just got access to the Twitter V2 API and setup credentials.
```json
"twitter": {
"registration": {
"consumerKeySettingName": "TWITTER_CONSUMER_KEY",
"consumerSecretSettingName": "TWITTER_CONSUMER_SECRET"
}
}
```
I also tried this like I have for Facebook
```json
"twitter": {
"registration": {
"consumerKeySettingName": "TWITTER_CONSUMER_KEY",
"consumerSecretSettingName": "TWITTER_CONSUMER_SECRET"
},
"login": {
"scopes":["email"]
},
"userDetailsClaim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"
}
```

When I attempt to log in using Twitter, I receive a 302 from .auth/login/twitter to ```/.auth/login/twitter?post_login_redirect_uri=/.auth/complete&staticWebAppsAuthNonce=``` which immediately redirects me to my ```/login/index.html``` as configured in the ```staticwebapp.config.json```
```json
"401": {
"redirect": "/login/index.html",
"statusCode": 302
},
```

All my other authentication methods are still working (where when Facebook was not working none of them worked).

I am trying to find out if the Twitter V2 API is supported yet? If it is, how do I make this work? If it is not, what is the ETA to support it?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.