Skip to content

Can Token support custom token structure? #551

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

Closed
yongxingMa opened this issue Feb 28, 2022 · 3 comments
Closed

Can Token support custom token structure? #551

yongxingMa opened this issue Feb 28, 2022 · 3 comments

Comments

@yongxingMa
Copy link

yongxingMa commented Feb 28, 2022

Now my return value is wrapped with a layer of。
Not like this,

{
"accessToken":"XXX"
"tokenType":"XXX"
"refreshtoken":"XXX"
}

but like this:

{
"code":200,
"messsage":"success",
"data":
    {
    "accessToken":"XXX"
    "tokenType":"XXX"
    "refreshtoken":"XXX"
    }
}
@jamietanna
Copy link

I don't think this would make sense, as that's not an OAuth2 compliant solution. This wouldn't work with any OAuth2 clients without code changes - is there any reason the response body is returned like so?

@jamietanna
Copy link

May be related to #526?

@yongxingMa
Copy link
Author

Thank you @jamietanna

@hickford hickford closed this as not planned Won't fix, can't repro, duplicate, stale Sep 24, 2023
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

3 participants