Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
xdevplatform
/
twauth-web
Public
forked from
andypiper/twauth-web
Notifications
You must be signed in to change notification settings
Fork
54
Star
112
Code
Issues
4
Pull requests
2
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
twauth-web
/
templates
/
index.html
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
22 lines (22 loc) · 1.39 KB
master
Breadcrumbs
twauth-web
/
templates
/
index.html
Copy path
Top
File metadata and controls
Code
Blame
22 lines (22 loc) · 1.39 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% extends "base.html" %}
{% block containercontent %}
<
p
class
="
lead
"
>
Welcome to the twauth-web sample. This will show a basic demo of the standard Twitter 3-legged
application authorization flow (also known as Sign in with Twitter).
</
p
>
<
div
class
="
hero-unit
"
>
<
p
>
To get started, we'll need you to authorize twauth-web to access your Twitter account. More information on what is
required is available from Twitter's
<
a
href
="
https://developer.twitter.com/en/docs/basics/authentication/overview/oauth
"
>
OAuth
</
a
>
overview.
</
p
>
<
p
>
Here's our plan:
</
p
>
<
ol
>
<
li
>
We're going to generate an OAuth request token that we will use when sending you to Twitter to grant us access.
</
li
>
<
li
>
Then we will redirect you to Twitter.com using our tokens from step 1, for you to authorize our app.
</
li
>
<
li
>
While at Twitter.com you will authorize twauth-web and you'll then be redirected back to us.
</
li
>
<
li
>
We will consume the OAuth params passed back to our callback URL. Using those values, we will then get your auth
token from the Twitter API.
</
li
>
<
li
>
Finally, to confirm that all has been authorized, we'll make an authenticated call to the Twitter API to get some
information about the user who authorized the app, to show we are able to retrieve this data on your behalf.
</
li
>
</
ol
>
</
div
>
<
p
>
Ready to give this a shot?
</
p
>
<
a
href
="
/start
"
class
="
btn btn-small btn-success
"
>
Let's Begin
</
a
>
{% endblock %}
You can’t perform that action at this time.