Token response

This commit is contained in:
Dusan Jakub
2023-09-15 14:12:14 +02:00
parent 38403ff828
commit 5eecf5ec6d

View File

@@ -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) {
}