mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-01-17 09:07:12 +01:00
Token response
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
package com.ysoft.geecon.dto;
|
||||
|
||||
public record AccessTokenResponse(String tokenType, long expiresIn, String accessToken, String scope, String refreshToken, String idToken) {
|
||||
import com.fasterxml.jackson.annotation.JsonInclude;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
@JsonInclude(JsonInclude.Include.NON_NULL)
|
||||
public record AccessTokenResponse(@JsonProperty("token_type") String tokenType,
|
||||
@JsonProperty("expires_in") long expiresIn,
|
||||
@JsonProperty("access_token") String accessToken,
|
||||
String scope,
|
||||
@JsonProperty("refresh_token") String refreshToken,
|
||||
@JsonProperty("id_token") String idToken) {
|
||||
}
|
||||
Reference in New Issue
Block a user