Comments (4)
Hi @pbaletkeman. Could you provide more details what you want to see. Do you have questions about this example https://github.com/q0w/blacksheep-jwt/blob/main/example/app.py ?
from blacksheep-jwt.
Regarding your sample:
I'm trying to get it to work and I'm running into the following issue/error message:
File "C:\Users\pbaletkeman\blackjwt\app.py", line 7, in <module>
from blacksheep_jwt import register_jwt
File "C:\Users\pbaletkeman\AppData\Local\pypoetry\Cache\virtualenvs\blackjwt-2yrC6CVh-py3.11\Lib\site-packages\blacksheep_jwt\__init__.py", line 5, in <module>
from blacksheep_jwt.authentication import JwtAuthentication
File "C:\Users\pbaletkeman\AppData\Local\pypoetry\Cache\virtualenvs\blackjwt-2yrC6CVh-py3.11\Lib\site-packages\blacksheep_jwt\authentication.py", line 8, in <module>
from guardpost.asynchronous.authentication import AuthenticationHandler
ModuleNotFoundError: No module named 'guardpost.asynchronous'
I am using Poetry and this is what I have for dependencies:
[tool.poetry.dependencies]
python = "^3.11"
blacksheep = {version = "2.0a11", extras = ["full"]}
uvicorn = {version="^0.23.2", extras = ["standard"]}
uvloop = {version = "^0.17.0", platform = "linux"}
blacksheep-jwt = "0.1.0"
essentials-configuration = "2.0.3"
guardpost = "1.0.2"
guardpost-oidc = "0.0.1"
neoteroi-auth = "0.0.3"
guardpost-jwt = "0.0.1"
I did have to update lines
from configuration.common import ConfigurationBuilder
from configuration.json import JSONFile
to
from config.common import ConfigurationBuilder
from config.json import JSONFile
in order to use the updated config library
Any thoughts on how to fix?
from blacksheep-jwt.
As far as what I'd like to see?
I do not see how/where a token is created.
Is the user just any valid int?
Does this sample provide the standard 'Bearer" type token?
When is the /refresh endpoint accessed?
from blacksheep-jwt.
Regarding your sample: I'm trying to get it to work and I'm running into the following issue/error message:
File "C:\Users\pbaletkeman\blackjwt\app.py", line 7, in <module> from blacksheep_jwt import register_jwt File "C:\Users\pbaletkeman\AppData\Local\pypoetry\Cache\virtualenvs\blackjwt-2yrC6CVh-py3.11\Lib\site-packages\blacksheep_jwt\__init__.py", line 5, in <module> from blacksheep_jwt.authentication import JwtAuthentication File "C:\Users\pbaletkeman\AppData\Local\pypoetry\Cache\virtualenvs\blackjwt-2yrC6CVh-py3.11\Lib\site-packages\blacksheep_jwt\authentication.py", line 8, in <module> from guardpost.asynchronous.authentication import AuthenticationHandler ModuleNotFoundError: No module named 'guardpost.asynchronous'
I am using Poetry and this is what I have for dependencies: [tool.poetry.dependencies] python = "^3.11" blacksheep = {version = "2.0a11", extras = ["full"]} uvicorn = {version="^0.23.2", extras = ["standard"]} uvloop = {version = "^0.17.0", platform = "linux"} blacksheep-jwt = "0.1.0" essentials-configuration = "2.0.3" guardpost = "1.0.2" guardpost-oidc = "0.0.1" neoteroi-auth = "0.0.3" guardpost-jwt = "0.0.1"
I did have to update lines
from configuration.common import ConfigurationBuilder from configuration.json import JSONFile
to
from config.common import ConfigurationBuilder from config.json import JSONFile
in order to use the updated config library
Any thoughts on how to fix?
I think that the Python error has to do with a newer version of BlackSheep, I'm using 2.0a11.
I'll hope to get a chance to look at this again tomorrow
from blacksheep-jwt.
Related Issues (1)
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 blacksheep-jwt.