Code Monkey home page Code Monkey logo

Comments (3)

thomaxxl avatar thomaxxl commented on August 13, 2024

The auth examples were not adapted to recent changes. I updated the jwt example so it runs now.
There's still something wrong with the swagger: it's not sending the Authorization header. Using curl on the cli does work:

curl -X GET "http://192.168.235.136:5000/Users/?include=items&fields%5BUser%5D=username&page%5Boffset%5D=0&page%5Blimit%5D=10&sort=username%2Cid" -H "accept: application/vnd.api+json" -H "Content-Type: application/vnd.api+json" -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE1ODgwNjUxMzgsIm5iZiI6MTU4ODA2NTEzOCwianRpIjoiZTVkNmFlZDktODlhNC00Zjc0LTg4MmMtYjU5ZjY0ZDczYzg2IiwiZXhwIjoxNTg4MDY2MDM4LCJpZGVudGl0eSI6ImFkbWluIiwiZnJlc2giOmZhbHNlLCJ0eXBlIjoiYWNjZXNzIn0.AnM8RF1ewnr467qLlTVgwMfiaETLFHtI4igGuQbVJsY"

from safrs.

thomaxxl avatar thomaxxl commented on August 13, 2024

Can you try the latest examples/demo_jwt.py commit? I've modified the swagger.

I still have to double check everything tho.

from safrs.

NexPlex avatar NexPlex commented on August 13, 2024

Hi, Thomas, everything seems to work correctly now. Thank you.

from safrs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.