mirror of
https://github.com/ysoftdevs/oauth-playground-server.git
synced 2026-03-26 11:02:05 +01:00
Token response
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
package com.ysoft.geecon.dto;
|
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