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.ecobee.internal.api;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link EcobeeAuthState} represents that steps in the Ecobee PIN
19 * authorization process.
21 * @author Mark Hilbush - Initial contribution
24 enum EcobeeAuthState {
26 * This is the initial state. It indicates that an "authorize" API call is needed to get
32 * This state indicates that an Ecobee PIN request was successful, and that a "token" API
33 * call is needed to complete the authorization and get the refresh and access tokens. In
34 * order to get the tokens, the user must authorize the application by entering the PIN
35 * into the Ecobee web portal.
40 * This state indicates that the "authorize" and "token" steps were successful.