spraakbanken / mink-backend

Flask application serving as a backend to Min Språkbank
MIT License
0 stars 1 forks source link

Create testing environment #88

Open anne17 opened 10 months ago

anne17 commented 10 months ago

We want to have the possibility to test the Mink backend without touching sbauth. Arild has created a fake JWT server which can probably be used to test most parts of the Mink workflow.

Jag har gjort en liten pythonserver som encodar godtyckliga jwt:er: https://github.com/arildm/fakejwt Den kör på demo nu, så man kan PUT:a och GET:a dit. Jag har t ex gjort: curl -X PUT https://demo.spraakbanken.gu.se/arild/fakejwt/jwt/mink-arild --json @payload.json Och nu om man besöker https://demo.spraakbanken.gu.se/arild/fakejwt/jwt/mink-arild får man en JWT som innehåller den payloaden.