2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.tesla.internal.protocol.sso;
15 import static org.openhab.binding.tesla.internal.TeslaBindingConstants.*;
18 * The {@link RefreshTokenRequest} is a datastructure to refresh
19 * the access token for the SSO endpoint
21 * @author Christian Güdel - Initial contribution
23 public class RefreshTokenRequest {
24 public String grant_type = "refresh_token";
25 public String client_id = CLIENT_ID;
26 public String refresh_token;
27 public String scope = SSO_SCOPES;
29 public RefreshTokenRequest(String refresh_token) {
30 this.refresh_token = refresh_token;