Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Token Topics of CMS #3

Open
constantinedev opened this issue Dec 19, 2023 · 0 comments
Open

Token Topics of CMS #3

constantinedev opened this issue Dec 19, 2023 · 0 comments

Comments

@constantinedev
Copy link
Owner

About how to make token youself with Flas.
We had try to make this in /modules/plugins/apis.py
We added now function for regist and update the flash coustim token.
image

In case it's for you can custom to build your token design
By default of our templates, the format's like <uname>:<email>

For about the TOKEN design and permissions request.
You can do whatever JTW and Auth0 (1&2)

Usage:
In your program with .py modules and whatever you like with the modules.
TOKEN modules are following here:
from modules.plugins.apis import tokMaker
after the call function you need (2)two valie(s)!

example:

import asyncio
from modules.apis import tokMaker

def your_function():
  token = asyncio.run(tokMaker(uname, email)

or

from modules.apis import tokMaker

async def your_function():
  token = await tokMaker(uname, email)

By Default our templates are using sername and email to build the token
You should think about your token design and develop.
We also block the edit in profile page, of the token it make you easy to know and copy out for development.

Other JWT or Auth(x) permissions custom access.

You also can leave our pulgins and use youself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant