Comments (4)
We haven't documented this well, but in the final callback after the PKCE flow, when we give you the auth token and identity ID, we also give you back whatever the OAuth provider gave us under the keys: provider_token
and provider_refresh_token
which you can use to make authenticated calls to the identity provider.
I'll leave this ticket open while we add more guidance in the documentation for this.
from edgedb.
@scotttrinh is there any GitHub repo that has already done this? i'd very much appreciate it because i couldn't find one.
from edgedb.
We have a documentation PR that will land shortly to show how to do this. You can see it here: #7354 or wait for a bit until it lands in the guides itself.
from edgedb.
thank you,
You point me in the right direction and i found out this is how you can achieve it with GitHub:
const userDataReq = await fetch("https://api.github.com/user", {
headers: {
Authorization: `token ${tokenData.provider_token}`,
},
});
const userData = (await userDataReq.json()) as GithubUserDataRes;
from edgedb.
Related Issues (20)
- ISE: "subquery in FROM must have an alias" in PG < 16
- Magic Code Support
- Don't allow setting a global if it was declared with a computable expression HOT 1
- Auth improvements HOT 1
- Keycloak OAuth Provider HOT 2
- No index names in interactive migrations HOT 2
- Docs search shouldn't close on open in new tab
- Docs search should be improved
- Unclear error message for insert with mutation rewrite
- Overly strict error: INSERT does not support volatile properties with exclusive constraints
- `constraint expression on` causes InternalServerError: NotImplementedError HOT 2
- ISE when selecting link property in a complicated expression HOT 2
- `assert` should fire on empty sets
- Implementing `sum(SET OF duration)`
- Stale Multi Links on rewrites using __subject__ object.
- Improve error message when aggegation functions are used in simple expressions HOT 2
- Remove inheritance views HOT 1
- More language server feature work HOT 1
- Support PostGIS extension
- `id` has two indexes on it HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edgedb.