Comments (10)
Hiya,
You can definitely access it, just not through the client libraries. Here's some documentation about how to do so: https://fusionauth.io/docs/v1/tech/oauth/endpoints#introspect You can use a python HTTP library to create the POST request.
If you are only working with OAuth, you could also use any of the standard OAuth libraries. For this example app I used a mix of the FusionAuth client libraries and requests_oauthlib
: https://github.com/FusionAuth/fusionauth-example-flask-portal
from fusionauth-python-client.
@robotdan IMHO, I suggest introspect_access_token
so that it can relate more to all the other method names like exchange_o_auth_code_for_access_token
or validate_device
which start with a verb.
All of the method names suggested in this issue are pythony though, so no comments on that. 😄
from fusionauth-python-client.
I think we have a winner! introspect_access_token
it is. Thanks for the feedback @AliMirlou .
from fusionauth-python-client.
Available in master and 1.19.8
https://pypi.org/project/fusionauth-client/
from fusionauth-python-client.
It is not currently in the client libraries. We can look at adding it.
from fusionauth-python-client.
Isn't it an essential endpoint?
from fusionauth-python-client.
I'm not against adding it to the client libs.
See commits
FusionAuth/fusionauth-client-builder@12569fd and 62fab4b
I haven't tested this yet... @AliMirlou feel free to see how it works.
@mooreds or @AliMirlou any feedback on the method name?
from fusionauth-python-client.
I'd probably call it o_auth_introspect
for consistency (there are only a few other methods that reference oauth in the name, but one of them uses that clunky string).
from fusionauth-python-client.
Yeah, normally we wouldn't mention oauth2
but since this is a really specific method I didn't know what else to call it.
I am fine with o_auth_introspect
but it is (technically) an OAuth2 thing and not related to OAuth1 (I don't think anyway). But perhaps there is no confusion here since we don't support OAuth v1 at all.
from fusionauth-python-client.
@AliMirlou any opinion on a name that suites the method, and is also "python-y" :-)
from fusionauth-python-client.
Related Issues (15)
- Package broken? HOT 11
- Logout API not working HOT 9
- Uri not working for urls ending with a backslash ? HOT 3
- Python types HOT 1
- Logout API does not revoke the access_token HOT 6
- Bug, missing requirements HOT 4
- Async Support HOT 1
- Search identity providers API doesn't work as expected HOT 1
- Feature request: add search by ID to identity provider API HOT 2
- No version in Python package HOT 2
- validate_jwt method using incorrect header HOT 3
- Use Python optional parameters HOT 5
- Function client_response.was_successful() return False instead of True HOT 3
- Documentation and/or test cases? HOT 3
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 fusionauth-python-client.