Skip to content

token endpoint: align response with old spring-security-oauth #1108

Closed
@emilburzo

Description

@emilburzo

Describe the bug
I'm migrating from the EOL spring-security-oauth project and thus need to keep the responses identical.

I've started with the token endpoint and it's working well so far, however there are two differences that I do not know how to address:

For the token endpoint, the differences are:

  • jti
    • old: included by default and identical to the one in the access_token body
    • new: could not find a way to include it
  • token_type
    • old: bearer (note the case)
    • new: Bearer

Example

old

{
  "access_token": "...",
  "expires_in": 59,
  "jti": "abcf9112-fa08-4474-a2df-....",
  "scope": "sessions",
  "token_type": "bearer"
}

new

{
  "access_token": "...",
  "expires_in": 59,
  "scope": "sessions",
  "token_type": "Bearer"
}

I feel like I'm missing something obvious but just can't find it in the docs.

To Reproduce
Default sample project

Expected behavior

  1. The jti is included by default, or a way to provide it.
  2. A way to change the case of token_type

Metadata

Metadata

Assignees

Labels

status: invalidAn issue that we don't feel is valid

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions