// Copyright 2022 LTN Global Communications, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. syntax = "proto3"; package tv.make.api; option go_package = "git.ltnglobal.com/make.tv/genproto/api;api"; // Token represents a OAuth2 access token message Token { // The access token string as issued by the authorization server. // [required] string access_token = 1; // If the access token will expire, then it is useful to return a refresh token which applications // can use to obtain another access token. However, tokens issued with the implicit grant cannot // be issued a refresh token. // [optional] string refresh_token = 2; // If the access token may expire, the server replies with the duration of time the access token is granted for. // [optional] int32 expires_in_sec = 3; // The type of token this is, typically just the string "bearer". // [required] string type = 4; // If the scope the user granted is identical to the scope the app requested, this parameter is optional. // If the granted scope is different from the requested scope, such as if the user modified the scope, // then this parameter is required. // [optional] string scope = 5; }