Giter Site home page Giter Site logo

how to refresh token? about flask-sentinel HOT 5 CLOSED

pyeve avatar pyeve commented on June 27, 2024
how to refresh token?

from flask-sentinel.

Comments (5)

janreyho avatar janreyho commented on June 27, 2024

modify flask_sentinel/models.py

class Client(BaseModel):
    def allowed_grant_types(self):
-        return ['password']
+        return ['password','refresh_token']

then fresh token:
https://localhost:5000/oauth/token?client_id=STmAq9vcrESf5pLcqcCaHvEr65Z6MDyJInbaVSQg&grant_type=refresh_token&refresh_token=nrLXvkXJcvQRollGOjPe1yiNtIWUVz

from flask-sentinel.

nicolaiarocci avatar nicolaiarocci commented on June 27, 2024

Excellent. Would you be willing to submit a PR which also includes a README update?

from flask-sentinel.

janreyho avatar janreyho commented on June 27, 2024

YES, very happy to do it, but:

➜  flask-sentinel git:(develop) git push
remote: Permission to nicolaiarocci/flask-sentinel.git denied to janreyho.
fatal: unable to access 'https://github.com/nicolaiarocci/flask-sentinel.git/': The requested URL returned error: 403

from flask-sentinel.

nicolaiarocci avatar nicolaiarocci commented on June 27, 2024

You first need to fork the repository. See https://help.github.com/categories/collaborating-with-issues-and-pull-requests/

from flask-sentinel.

janreyho avatar janreyho commented on June 27, 2024

I have already forked the repository on Aug 14, 2016. https://github.com/janreyho/flask-sentinel

Would you be willing to submit a PR which also includes a README update?

This sentence I understand, you want me to push a update to your repository, but I don't have that right.

from flask-sentinel.

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.